Skip to content

Commit

Permalink
Fix: Support float ping in push route
Browse files Browse the repository at this point in the history
  • Loading branch information
chakflying committed Nov 6, 2023
1 parent b534fde commit 5d6a6a2
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 @@ -50,7 +50,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 5d6a6a2

Please sign in to comment.