Browse Source

eslint for notification.js

pull/254/head
LouisLam 3 years ago
parent
commit
682e4d45e2
  1. 1
      .eslintrc.js
  2. 6
      server/notification.js

1
.eslintrc.js

@ -75,5 +75,6 @@ module.exports = {
"no-empty": ["error", {
"allowEmptyCatch": true
}],
"no-control-regex": "off"
},
}

6
server/notification.js

@ -404,7 +404,7 @@ class Notification {
"messages": [
{
"type": "text",
"text":"Test Successful!"
"text": "Test Successful!"
}
]
}
@ -415,7 +415,7 @@ class Notification {
"messages": [
{
"type": "text",
"text":"UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
"text": "UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
}
]
}
@ -426,7 +426,7 @@ class Notification {
"messages": [
{
"type": "text",
"text":"UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
"text": "UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
}
]
}

Loading…
Cancel
Save