mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-31 00:36:16 +00:00
Merge pull request #103 from Spiritreader/master
Fix parenthesis mistake in notification checker (fixes #86)
This commit is contained in:
commit
d1370a62bd
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class Monitor extends BeanModel {
|
||||||
|
|
||||||
// Mark as important if status changed, ignore pending pings,
|
// Mark as important if status changed, ignore pending pings,
|
||||||
// Don't notify if disrupted changes to up
|
// 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;
|
bean.important = true;
|
||||||
|
|
||||||
// Do not send if first beat is UP
|
// Do not send if first beat is UP
|
||||||
|
|
Loading…
Add table
Reference in a new issue