Fix stats API
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
55b854a592
commit
49ad201522
@ -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;
|
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user