From 6eaf6b409c1e725dbb364feb4c286cec3a4d690f Mon Sep 17 00:00:00 2001 From: Brodie Davis Date: Thu, 27 Jun 2024 14:04:03 -0400 Subject: [PATCH] fix not utilizing fetched address --- server/notification-providers/slack.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index acf7427ee..702256429 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -48,7 +48,8 @@ class Slack extends NotificationProvider { } - if (this.extractAdress(monitorJSON)) { + const address = this.extractAdress(monitorJSON); + if (address) { actions.push({ "type": "button", "text": { @@ -56,7 +57,7 @@ class Slack extends NotificationProvider { "text": "Visit site", }, "value": "Site", - "url": monitorJSON.url, + "url": address, }); }