mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
lint fix
This commit is contained in:
parent
e4a2f7890b
commit
763925b9b9
2 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue