From e4552a2184963bf1ab74d74881c512f70fa21f43 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 2 Jan 2026 06:47:29 +0100 Subject: [PATCH] simplify extractAddress(monitorJSON) a bit more --- server/notification-providers/discord.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index e560e38d5..4c573d632 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -46,8 +46,8 @@ class Discord extends NotificationProvider { } // If heartbeatJSON is not null, we go into the normal alerting loop. + let addess = this.extractAddress(monitorJSON); if (heartbeatJSON["status"] === DOWN) { - let addess = this.extractAddress(monitorJSON); let discorddowndata = { username: discordDisplayName, embeds: [{ @@ -88,7 +88,6 @@ class Discord extends NotificationProvider { return okMsg; } else if (heartbeatJSON["status"] === UP) { - let addess = this.extractAddress(monitorJSON); let discordupdata = { username: discordDisplayName, embeds: [{