Skip to content

Commit

Permalink
Fix hardcoded DB name in 'about' SQL query. Closes #1477.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Aug 27, 2023
1 parent 52a7298 commit eefcbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit eefcbc3

Please sign in to comment.