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);
|
Monitor.sendSlowResponseNotification(monitor, bean, slowStats);
|
||||||
|
|
||||||
|
|
||||||
// Send notification every x times
|
// Send notification every x times
|
||||||
} else if (this.slowResponseNotificationResendInterval > 0) {
|
} else if (this.slowResponseNotificationResendInterval > 0) {
|
||||||
if (((bean.slowResponseCount) % this.slowResponseNotificationResendInterval) === 0) {
|
if (((bean.slowResponseCount) % this.slowResponseNotificationResendInterval) === 0) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Slack extends NotificationProvider {
|
||||||
const textMsg = "Uptime Kuma Alert";
|
const textMsg = "Uptime Kuma Alert";
|
||||||
|
|
||||||
let color;
|
let color;
|
||||||
switch(heartbeatJSON["status"]) {
|
switch (heartbeatJSON["status"]) {
|
||||||
case UP:
|
case UP:
|
||||||
case NOMINAL:
|
case NOMINAL:
|
||||||
color = "#2eb886";
|
color = "#2eb886";
|
||||||
|
@ -62,7 +62,7 @@ class Slack extends NotificationProvider {
|
||||||
color = "#ffc107";
|
color = "#ffc107";
|
||||||
break;
|
break;
|
||||||
case DOWN:
|
case DOWN:
|
||||||
color = "#e01e5a"
|
color = "#e01e5a";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
color = "#0dcaf0";
|
color = "#0dcaf0";
|
||||||
|
|
Loading…
Add table
Reference in a new issue