mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
inline the down prio
This commit is contained in:
parent
6f63175244
commit
dd29261a0c
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ class Ntfy extends NotificationProvider {
|
|||
if (heartbeatJSON.status === DOWN) {
|
||||
tags = [ "red_circle" ];
|
||||
status = "Down";
|
||||
priority = downPriority;
|
||||
// defaults to max(priority + 1, 5)
|
||||
priority = notification.ntfyPriorityDown || (priority === 5 ? priority : priority + 1);
|
||||
} else if (heartbeatJSON["status"] === UP) {
|
||||
tags = [ "green_circle" ];
|
||||
status = "Up";
|
||||
|
|
Loading…
Add table
Reference in a new issue