From f63d36478d55377f36990e6401d95f16ab2dff9b Mon Sep 17 00:00:00 2001 From: Qi Zhao <956361916@qq.com> Date: Thu, 13 Jun 2024 23:28:36 +0800 Subject: [PATCH] Update server/routers/api-router.js Co-authored-by: Frank Elsinga --- server/routers/api-router.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 6bc4b91ee..45e726732 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -316,7 +316,6 @@ router.get("/api/badge/:id/ping/:duration?", cache("5 minutes"), async (request, if (/^[0-9]+$/.test(requestedDuration)) { requestedDuration = `${requestedDuration}h`; } - const duration = requestedDuration.slice(0, -1); // Check if monitor is public