From 763925b9b9b76c13d2383b9138787f3968d440fd Mon Sep 17 00:00:00 2001 From: Stephen Papierski Date: Tue, 28 Nov 2023 14:27:46 -0700 Subject: [PATCH] lint fix --- server/model/monitor.js | 1 - server/notification-providers/slack.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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";