From a6188da3bca9cddfb5a2264b44d75bb4c1702291 Mon Sep 17 00:00:00 2001 From: JanK Date: Sat, 16 Nov 2024 10:11:46 +0100 Subject: [PATCH] inlined webhookURL --- server/notification-providers/pumble.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/notification-providers/pumble.js b/server/notification-providers/pumble.js index 20087fd6..51ee579d 100644 --- a/server/notification-providers/pumble.js +++ b/server/notification-providers/pumble.js @@ -10,7 +10,6 @@ class Pumble extends NotificationProvider { */ async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; - let webhookUrl = notification.pumblewebhookURL; try { if (heartbeatJSON === null && monitorJSON === null) { @@ -26,7 +25,7 @@ class Pumble extends NotificationProvider { ] }; - await axios.post(webhookUrl, data); + await axios.post(notification.webhookURL, data); return okMsg; } @@ -41,7 +40,7 @@ class Pumble extends NotificationProvider { ] }; - await axios.post(webhookUrl, data); + await axios.post(notification.webhookURL, data); return okMsg; } catch (error) { this.throwGeneralAxiosError(error);