From 58533e8f06e9be6e1687d29aee6ff74bc6b2dea1 Mon Sep 17 00:00:00 2001 From: Qi Zhao <956361916@qq.com> Date: Thu, 13 Jun 2024 23:29:05 +0800 Subject: [PATCH] Update server/routers/api-router.js Co-authored-by: Frank Elsinga --- 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 bb8b75695..7817da046 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -310,7 +310,7 @@ router.get("/api/badge/:id/ping/:duration?", cache("5 minutes"), async (request, const requestedMonitorId = parseInt(request.params.id, 10); // Default duration is 24 (h) if not defined in queryParam, limited to 720h (30d) - let requestedDuration = request.params.duration !== undefined ? request.params.duration : "24"; + let requestedDuration = request.params.duration !== undefined ? request.params.duration : "24h"; const overrideValue = value && parseFloat(value); if (/^[0-9]+$/.test(requestedDuration)) {