diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 6bc4b91e..45e72673 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