Update notification.js

This commit is contained in:
Niyas 2021-07-31 10:51:13 +05:30 committed by GitHub
parent ab1fe2e2d1
commit 3f84e5e8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;