1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Merge pull request #456 from Kichiyaki/master

fix(metrics): warning - postgres - failed to get database size (expected 0 arguments, got 1)
This commit is contained in:
Ferdinand Mütsch 2023-01-16 18:31:43 +01:00 committed by GitHub
commit 1615a35628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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