Skip to content

Commit

Permalink
Merge pull request #103 from Spiritreader/master
Browse files Browse the repository at this point in the history
Fix parenthesis mistake in notification checker (fixes #86)
  • Loading branch information
louislam authored Jul 23, 2021
2 parents 248b529 + 063fd6e commit d1370a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1370a6

Please sign in to comment.