From 4657988d9128d9b51ed4dbef337e7ca2e78f6114 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 02:43:24 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- server/routers/api-router.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 960ded6a4..c11b95a4f 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -56,9 +56,7 @@ router.all("/api/push/:pushToken", async (request, response) => { // When explicitly pushing down, bypass retry logic and go directly to DOWN const isExplicitDown = request.query.status === "down"; - let monitor = await R.findOne("monitor", " push_token = ? AND active = 1 ", [ - pushToken - ]); + let monitor = await R.findOne("monitor", " push_token = ? AND active = 1 ", [pushToken]); if (!monitor) { throw new Error("Monitor not found or not active."); @@ -84,7 +82,14 @@ router.all("/api/push/:pushToken", async (request, response) => { msg = "Monitor under maintenance"; bean.status = MAINTENANCE; } else { - determineStatus(statusFromParam, previousHeartbeat, monitor.maxretries, monitor.isUpsideDown(), bean, isExplicitDown); + determineStatus( + statusFromParam, + previousHeartbeat, + monitor.maxretries, + monitor.isUpsideDown(), + bean, + isExplicitDown + ); } // Calculate uptime