From 5e1489a6edcd14370d5c4f86125e1931ea350d63 Mon Sep 17 00:00:00 2001 From: Austin Miller Date: Wed, 22 Feb 2023 14:32:02 -0700 Subject: [PATCH] PagerTree Notification - Send msg when heartbeatJSON null --- server/notification-providers/pagertree.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/notification-providers/pagertree.js b/server/notification-providers/pagertree.js index c39f5681..8a0c4e36 100644 --- a/server/notification-providers/pagertree.js +++ b/server/notification-providers/pagertree.js @@ -13,8 +13,8 @@ class PagerTree extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { try { if (heartbeatJSON == null) { - const title = "[Test] Uptime Kuma Alert"; - return this.postNotification(notification, title, monitorJSON, heartbeatJSON); + // general messages + return this.postNotification(notification, msg, monitorJSON, heartbeatJSON); } if (heartbeatJSON.status === UP && notification.pagertreeAutoResolve === "resolve") { @@ -64,7 +64,7 @@ class PagerTree extends NotificationProvider { headers: { "Content-Type": "application/json" }, data: { event_type: eventAction, - id: heartbeatJSON?.monitorID || "uptime-kuma-test", + id: heartbeatJSON?.monitorID || "uptime-kuma", title: title, urgency: notification.pagertreeUrgency, heartbeat: heartbeatJSON,