diff --git a/server/model/monitor.js b/server/model/monitor.js index 4fa16c67b..783c42854 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1641,7 +1641,6 @@ class Monitor extends BeanModel { Monitor.sendSlowResponseNotification(monitor, bean, slowStats); - // Send notification every x times } else if (this.slowResponseNotificationResendInterval > 0) { if (((bean.slowResponseCount) % this.slowResponseNotificationResendInterval) === 0) { diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index f343280d6..cf4810d17 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -53,7 +53,7 @@ class Slack extends NotificationProvider { const textMsg = "Uptime Kuma Alert"; let color; - switch(heartbeatJSON["status"]) { + switch (heartbeatJSON["status"]) { case UP: case NOMINAL: color = "#2eb886"; @@ -62,7 +62,7 @@ class Slack extends NotificationProvider { color = "#ffc107"; break; case DOWN: - color = "#e01e5a" + color = "#e01e5a"; break; default: color = "#0dcaf0";