From 1d4d7fa9c4c9626f4451fe7449171669ad8a808a Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 22 Jul 2021 20:25:03 +0200 Subject: [PATCH] fix parenthesis mistake --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 2479688ac..1beaa5475 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -120,7 +120,7 @@ class Monitor extends BeanModel { // Mark as important if status changed, ignore pending pings, // Don't notify if disrupted changes to up - if ((! previousBeat || previousBeat.status !== bean.status) && bean.status !== 2 && !(previousBeat.status === 2 && bean.status !== 0)) { + if ((!previousBeat) || ((previousBeat.status !== bean.status) && bean.status !== 2 && !(previousBeat.status === 2 && bean.status !== 0))) { bean.important = true; // Do not send if first beat is UP