mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
better display of server version
This commit is contained in:
@@ -178,7 +178,10 @@ const driver = {
|
||||
},
|
||||
async getVersion(pool) {
|
||||
const status = await pool.__getDatabase().admin().serverInfo();
|
||||
return status;
|
||||
return {
|
||||
...status,
|
||||
versionText: `MongoDB ${status.version}`,
|
||||
};
|
||||
},
|
||||
async listDatabases(pool) {
|
||||
const res = await pool.__getDatabase().admin().listDatabases();
|
||||
|
||||
Reference in New Issue
Block a user