From 71f00b369055b36110d854e0399344a8157dc9d6 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 12 Jan 2023 18:33:39 +0100 Subject: [PATCH] Parse push ping parameter with parseInt. --- server/routers/api-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index e22f9fae4..5e94d9a0b 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -37,7 +37,7 @@ router.get("/api/push/:pushToken", async (request, response) => { let pushToken = request.params.pushToken; let msg = request.query.msg || "OK"; - let ping = request.query.ping || null; + let ping = parseInt(request.query.ping) || null; let statusString = request.query.status || "up"; let status = (statusString === "up") ? UP : DOWN;