Fix stats API

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-06-28 14:06:31 +01:00
parent 55b854a592
commit 49ad201522
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
const version = { const version = {
api: ['/api/v1/','/api/v2'], api: ['/api/v1/','/api/v2'],
app: '2023.6.14' app: '2023.6.15'
}; };
module.exports = version; module.exports = version;

View File

@ -101,6 +101,7 @@ async function statistics() {
return { return {
hostname: os.hostname() || 'Unknown', hostname: os.hostname() || 'Unknown',
runtimeMode: process.env.NODE_ENV || 'Unknown', runtimeMode: process.env.NODE_ENV || 'Unknown',
reset: counters[0]['since'],
updateTimes: { updateTimes: {
timetable: timetable[0]['updated'], timetable: timetable[0]['updated'],
pis: pis[0]['updated'], pis: pis[0]['updated'],