From c1919b2cba826e595a556c0dbf881bfb9d580aac Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 09:47:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- server/model/monitor.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 0dd5a6497..a6fd59d53 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1450,7 +1450,7 @@ class Monitor extends BeanModel { * @param {boolean} isFirstBeat Is this the first beat of this monitor? * @param {const} previousBeatStatus Status of the previous beat * @param {const} currentBeatStatus Status of the current beat - * @param {number} [monitorID] Optional monitor ID to check history for PENDING->UP transitions + * @param {number} monitorID Optional monitor ID to check history for PENDING->UP transitions * @returns {Promise} True if is an important beat else false */ static async isImportantForNotification(isFirstBeat, previousBeatStatus, currentBeatStatus, monitorID = null) { @@ -1680,11 +1680,10 @@ class Monitor extends BeanModel { * @returns {Promise} Last non-PENDING status or null if not found */ static async getLastNonPendingStatus(monitorID) { - const heartbeat = await R.findOne( - "heartbeat", - " monitor_id = ? AND status != ? ORDER BY time DESC LIMIT 1", - [monitorID, PENDING] - ); + const heartbeat = await R.findOne("heartbeat", " monitor_id = ? AND status != ? ORDER BY time DESC LIMIT 1", [ + monitorID, + PENDING, + ]); return heartbeat?.status || null; }