Add dbmanVer to stats API
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
cb2f3aa2ea
commit
04d598f984
@ -5,12 +5,14 @@ const vers = require('../configs/version.configs')
|
||||
|
||||
async function hits(){
|
||||
var dat = db.query("meta", {target: "counters"});
|
||||
var dbmanVer = db.query("versions", {target:"dbmanager"});
|
||||
log.out(`listServices.meta: fetched server meta`)
|
||||
let out = {};
|
||||
out.host = os.hostname();
|
||||
out.mode = process.env.NODE_ENV;
|
||||
out.verBkend = vers.app;
|
||||
out.dat = await dat;
|
||||
out.dat.verDbman = await dbmanVer.version;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user