Add api versions to stats api

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-03-30 21:18:07 +01:00
parent 07dc5f6d8f
commit 95d735205a

View File

@ -12,6 +12,7 @@ async function hits(){
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.verApi = vers.api;
out.dat = await dat; out.dat = await dat;
out.ver = await ver; out.ver = await ver;
log.out(`statsServices.hits: Sending Data: ${JSON.stringify(out)}`, "info") log.out(`statsServices.hits: Sending Data: ${JSON.stringify(out)}`, "info")