Adjust version presentation
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
e0420db03c
commit
7e823fb8be
@ -4,17 +4,17 @@ const os = require('os')
|
||||
const vers = require('../configs/version.configs')
|
||||
|
||||
async function hits(){
|
||||
log.out("statsServices.hits: Statistics Requested")
|
||||
var dat = db.query("meta", {target: "counters"});
|
||||
var dbmanVer = db.query("versions", {target:"dbmanager"});
|
||||
log.out(`listServices.meta: fetched server meta`)
|
||||
var ver = db.query("meta", {target: "versions"});
|
||||
log.out(`statsServices.hits: fetched server meta`)
|
||||
let out = {};
|
||||
out.host = os.hostname();
|
||||
out.mode = process.env.NODE_ENV;
|
||||
out.verBkend = vers.app;
|
||||
out.dat = await dat;
|
||||
await dbmanVer
|
||||
log.out(`listServices.meta: dbmanager Version: ${JSON.stringify(dbmanVer)}`)
|
||||
out.dat.verDbman = dbmanVer.version;
|
||||
out.ver = await ver;
|
||||
log.out(`statsServices.hits: Sending Data: ${JSON.stringify(out)}`)
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user