Skip to content

Commit

Permalink
Fix: Support float ping in push route (#3987)
Browse files Browse the repository at this point in the history
  • Loading branch information
chakflying authored Nov 9, 2023
1 parent ce0ba6c commit 38efd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routers/api-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 38efd97

Please sign in to comment.