From 3f84e5e8ab7e0ae7b9a260e4ae78dcf425affe1d Mon Sep 17 00:00:00 2001 From: Niyas Date: Sat, 31 Jul 2021 10:51:13 +0530 Subject: [PATCH] Update notification.js --- server/notification.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/notification.js b/server/notification.js index 67c62454c..ffa6541ce 100644 --- a/server/notification.js +++ b/server/notification.js @@ -251,7 +251,7 @@ class Notification { if (heartbeatJSON["status"] == 0) { let downdata = { "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) return okMsg; @@ -260,7 +260,7 @@ class Notification { if (heartbeatJSON["status"] == 1) { let updata = { "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) return okMsg;