fix: #9668, add raw info to psql database page

This commit is contained in:
Barış Soner Uşaklı
2021-07-20 20:36:44 -04:00
parent 6650c0bbf7
commit 6c47a060c1

View File

@@ -370,7 +370,10 @@ postgresModule.info = async function (db) {
current_setting('server_version') "version",
EXTRACT(EPOCH FROM NOW() - pg_postmaster_start_time()) * 1000 "uptime"
`);
return res.rows[0];
return {
...res.rows[0],
raw: JSON.stringify(res.rows[0], null, 4),
};
};
postgresModule.close = async function () {