From 49ad201522f86b665c541c1eb89a115899a74d57 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 28 Jun 2023 14:06:31 +0100 Subject: [PATCH] Fix stats API Signed-off-by: Fred Boniface --- src/configs/version.configs.js | 2 +- src/services/stats.services.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configs/version.configs.js b/src/configs/version.configs.js index fa62f8a..976a313 100644 --- a/src/configs/version.configs.js +++ b/src/configs/version.configs.js @@ -1,6 +1,6 @@ const version = { api: ['/api/v1/','/api/v2'], - app: '2023.6.14' + app: '2023.6.15' }; module.exports = version; \ No newline at end of file diff --git a/src/services/stats.services.js b/src/services/stats.services.js index 01001a3..a147f60 100644 --- a/src/services/stats.services.js +++ b/src/services/stats.services.js @@ -101,6 +101,7 @@ async function statistics() { return { hostname: os.hostname() || 'Unknown', runtimeMode: process.env.NODE_ENV || 'Unknown', + reset: counters[0]['since'], updateTimes: { timetable: timetable[0]['updated'], pis: pis[0]['updated'],