mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 06:49:41 -05:00
fix notification when changing from pending -> up
This commit is contained in:
parent
02230930c5
commit
054269ecf0
@ -120,8 +120,9 @@ class Monitor extends BeanModel {
|
|||||||
bean.msg = error.message;
|
bean.msg = error.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark as important if status changed, ignore pending pings
|
// Mark as important if status changed, ignore pending pings,
|
||||||
if ((! previousBeat || previousBeat.status !== bean.status) && bean.status !== 2) {
|
// Don't notify if disrupted changes to up
|
||||||
|
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…
Reference in New Issue
Block a user