From cb8d53ae36fe629a28ab8054231100744fa0fc18 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 31 May 2023 19:14:42 +0100 Subject: [PATCH] Add timetable count to stats Signed-off-by: Fred Boniface --- src/configs/version.configs.js | 2 +- src/services/stats.services.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configs/version.configs.js b/src/configs/version.configs.js index e128aea..fd370aa 100644 --- a/src/configs/version.configs.js +++ b/src/configs/version.configs.js @@ -1,6 +1,6 @@ const version = { api: ['/api/v1/',], - app: '2023.5.3' + app: '2023.5.4' }; module.exports = version; \ No newline at end of file diff --git a/src/services/stats.services.js b/src/services/stats.services.js index 3123aea..cc387f6 100644 --- a/src/services/stats.services.js +++ b/src/services/stats.services.js @@ -15,6 +15,7 @@ async function buildJson() { const pisCount = db.colCount('pis'); const corpusCount = db.colCount('corpus'); const stationsCount = db.colCount('stations'); + const timetableCount = db.colCount('timetable'); // Insert data json.mode = process.env.NODE_ENV; @@ -29,6 +30,7 @@ async function buildJson() { json.count.pis = await pisCount; json.count.corpus = await corpusCount; json.count.stations = await stationsCount; + json.count.timetable = await timetableCount; return json; }