Fix statistics to work with timetable-mgr metadata
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
fdcb43b5c2
commit
e913db5d57
@ -56,7 +56,7 @@ async function statistics() {
|
||||
logger.debug("statsServices.statistics: Fetching statistics");
|
||||
|
||||
const countersPromise = db.query("meta", { target: "counters" });
|
||||
const timetablePromise = db.query("meta", { target: "timetable" });
|
||||
const timetablePromise = db.query("meta", { type: "CifMetadata" });
|
||||
const pisPromise = db.query("meta", { target: "pis" });
|
||||
const corpusPromise = db.query("meta", { target: "corpus" });
|
||||
const reasonCodesPromise = db.query("meta", { target: "reasonCodes" });
|
||||
@ -102,7 +102,7 @@ async function statistics() {
|
||||
runtimeMode: process.env.NODE_ENV || "Unknown",
|
||||
reset: counters[0]["since"],
|
||||
updateTimes: {
|
||||
timetable: timetable[0]["updated"],
|
||||
timetable: (timetable[0]["lastUpdate"]),
|
||||
pis: pis[0]["updated"],
|
||||
corpus: corpus[0]["updated"],
|
||||
reasonCodes: reasonCodes[0]["updated"],
|
||||
|
Loading…
Reference in New Issue
Block a user