From eefcbc30a3d4b3b92d048a268eae3125a0d192c9 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 27 Aug 2023 13:20:05 +0530 Subject: [PATCH] Fix hardcoded DB name in 'about' SQL query. Closes #1477. --- queries.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries.sql b/queries.sql index c46b211cc..5c3b54b9d 100644 --- a/queries.sql +++ b/queries.sql @@ -1082,4 +1082,4 @@ DELETE FROM bounces WHERE subscriber_id = (SELECT id FROM sub); -- name: get-db-info SELECT JSON_BUILD_OBJECT('version', (SELECT VERSION()), - 'size_mb', (SELECT ROUND(pg_database_size('listmonk')/(1024^2)))) AS info; + 'size_mb', (SELECT ROUND(pg_database_size((SELECT CURRENT_DATABASE()))/(1024^2)))) AS info;