mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
run eslint for lunasea change
This commit is contained in:
parent
3f84e5e8ab
commit
2ebd79d037
2 changed files with 10 additions and 10 deletions
|
@ -242,7 +242,7 @@ class Notification {
|
||||||
if (heartbeatJSON == null) {
|
if (heartbeatJSON == null) {
|
||||||
let testdata = {
|
let testdata = {
|
||||||
"title": "Uptime Kuma Alert",
|
"title": "Uptime Kuma Alert",
|
||||||
"body": "Testing Successful."
|
"body": "Testing Successful.",
|
||||||
}
|
}
|
||||||
await axios.post(lunaseadevice, testdata)
|
await axios.post(lunaseadevice, testdata)
|
||||||
return okMsg;
|
return okMsg;
|
||||||
|
@ -251,7 +251,7 @@ class Notification {
|
||||||
if (heartbeatJSON["status"] == 0) {
|
if (heartbeatJSON["status"] == 0) {
|
||||||
let downdata = {
|
let downdata = {
|
||||||
"title": "UptimeKuma Alert:" + monitorJSON["name"],
|
"title": "UptimeKuma Alert:" + monitorJSON["name"],
|
||||||
"body": "[🔴 Down]"+heartbeatJSON["msg"]+ "\nTime (UTC):" + heartbeatJSON["time"]
|
"body": "[🔴 Down]" + heartbeatJSON["msg"] + "\nTime (UTC):" + heartbeatJSON["time"],
|
||||||
}
|
}
|
||||||
await axios.post(lunaseadevice, downdata)
|
await axios.post(lunaseadevice, downdata)
|
||||||
return okMsg;
|
return okMsg;
|
||||||
|
@ -260,7 +260,7 @@ class Notification {
|
||||||
if (heartbeatJSON["status"] == 1) {
|
if (heartbeatJSON["status"] == 1) {
|
||||||
let updata = {
|
let updata = {
|
||||||
"title": "UptimeKuma Alert:" + monitorJSON["name"],
|
"title": "UptimeKuma Alert:" + monitorJSON["name"],
|
||||||
"body": "[✅ Up]"+heartbeatJSON["msg"]+ "\nTime (UTC):" + heartbeatJSON["time"]
|
"body": "[✅ Up]" + heartbeatJSON["msg"] + "\nTime (UTC):" + heartbeatJSON["time"],
|
||||||
}
|
}
|
||||||
await axios.post(lunaseadevice, updata)
|
await axios.post(lunaseadevice, updata)
|
||||||
return okMsg;
|
return okMsg;
|
||||||
|
|
Loading…
Reference in a new issue