Add timetable count to stats
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
e76731f18a
commit
cb8d53ae36
@ -1,6 +1,6 @@
|
||||
const version = {
|
||||
api: ['/api/v1/',],
|
||||
app: '2023.5.3'
|
||||
app: '2023.5.4'
|
||||
};
|
||||
|
||||
module.exports = version;
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user