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')
|
const vers = require('../configs/version.configs')
|
||||||
|
|
||||||
async function hits(){
|
async function hits(){
|
||||||
|
log.out("statsServices.hits: Statistics Requested")
|
||||||
var dat = db.query("meta", {target: "counters"});
|
var dat = db.query("meta", {target: "counters"});
|
||||||
var dbmanVer = db.query("versions", {target:"dbmanager"});
|
var ver = db.query("meta", {target: "versions"});
|
||||||
log.out(`listServices.meta: fetched server meta`)
|
log.out(`statsServices.hits: 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;
|
||||||
await dbmanVer
|
out.ver = await ver;
|
||||||
log.out(`listServices.meta: dbmanager Version: ${JSON.stringify(dbmanVer)}`)
|
log.out(`statsServices.hits: Sending Data: ${JSON.stringify(out)}`)
|
||||||
out.dat.verDbman = dbmanVer.version;
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user