diff --git a/src/services/stats.services.js b/src/services/stats.services.js index 529aeb5..05af60e 100644 --- a/src/services/stats.services.js +++ b/src/services/stats.services.js @@ -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; }