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
dd29261a0c
commit
915c35f4dc
1 changed files with 0 additions and 2 deletions
|
@ -37,8 +37,6 @@ class Ntfy extends NotificationProvider {
|
|||
let tags = [];
|
||||
let status = "unknown";
|
||||
let priority = notification.ntfyPriority || 4;
|
||||
// defaults to max(priority + 1, 5)
|
||||
let downPriority = notification.ntfyPriorityDown || (priority === 5 ? priority : priority + 1);
|
||||
if ("status" in heartbeatJSON) {
|
||||
if (heartbeatJSON.status === DOWN) {
|
||||
tags = [ "red_circle" ];
|
||||
|
|
Loading…
Add table
Reference in a new issue