From 04d598f984482aab6496685435fb08e157ddda6e Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 13 Mar 2023 19:39:10 +0000 Subject: [PATCH] Add dbmanVer to stats API Signed-off-by: Fred Boniface --- src/services/stats.services.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/stats.services.js b/src/services/stats.services.js index b057a98..fe57b2f 100644 --- a/src/services/stats.services.js +++ b/src/services/stats.services.js @@ -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; }