diff --git a/server/routers/api-router.js b/server/routers/api-router.js index e50040f2e..acf8d56b1 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -49,7 +49,7 @@ router.get("/api/push/:pushToken", async (request, response) => { let pushToken = request.params.pushToken; let msg = request.query.msg || "OK"; - let ping = parseInt(request.query.ping) || null; + let ping = parseFloat(request.query.ping) || null; let statusString = request.query.status || "up"; let status = (statusString === "up") ? UP : DOWN;