fix(metrics): warning - postgres - failed to get database size (expected 0 arguments, got 1)

This commit is contained in:
Dawid Wysokiński 2023-01-16 17:23:39 +01:00
parent 97a10cc08a
commit 2e0e791853
No known key found for this signature in database
GPG Key ID: B5445E357FB8B892
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ FROM information_schema.tables
WHERE table_schema = ?
GROUP BY table_schema`
const sizeTplPostgres = `SELECT pg_database_size('%s');`
const sizeTplPostgres = `SELECT pg_database_size(?);`
const sizeTplSqlite = `
SELECT page_count * page_size as size