mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #9668, add raw info to psql database page
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user