fix parenthesis mistake

This commit is contained in:
Sam 2021-07-22 20:25:03 +02:00
parent 70b1f197c1
commit 1d4d7fa9c4

View File

@ -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