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(){ async function hits(){
var dat = db.query("meta", {target: "counters"}); var dat = db.query("meta", {target: "counters"});
var dbmanVer = db.query("versions", {target:"dbmanager"});
log.out(`listServices.meta: fetched server meta`) log.out(`listServices.meta: fetched server meta`)
let out = {}; let out = {};
out.host = os.hostname(); out.host = os.hostname();
out.mode = process.env.NODE_ENV; out.mode = process.env.NODE_ENV;
out.verBkend = vers.app; out.verBkend = vers.app;
out.dat = await dat; out.dat = await dat;
out.dat.verDbman = await dbmanVer.version;
return out; return out;
} }