Add dbmanVer to stats API

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-03-13 19:39:10 +00:00
parent cb2f3aa2ea
commit 04d598f984

View File

@ -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;
}