Update version to poll timetablemgr instead of mqclient

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2024-06-30 21:30:38 +01:00
parent 9031eb53c6
commit fdcb43b5c2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ interface versions {
const version: versions = {
api: ["/api/v2"],
app: "2024.04.4",
app: "2024.06.1",
};
module.exports = version;

View File

@ -43,7 +43,7 @@ async function hits() {
async function getVersions() {
logger.debug("statsServices.getVersions: Fetching versions");
const dbMan = await db.query("versions", { target: "dbmanager" });
const mqClt = await db.query("versions", { target: "mq-client" });
const mqClt = await db.query("versions", { target: "timetable-mgr" });
const data = {
backend: vers.app,
"db-manager": dbMan[0]?.["version"] || "",