From b8941403d16cbadadcef0f3f21e7a0af1600089e Mon Sep 17 00:00:00 2001 From: taschenuhr Date: Wed, 28 Feb 2024 16:30:48 +0100 Subject: [PATCH] code cleanup --- server/notification-providers/teams.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/notification-providers/teams.js b/server/notification-providers/teams.js index 16ce6435..4435d2dd 100644 --- a/server/notification-providers/teams.js +++ b/server/notification-providers/teams.js @@ -14,9 +14,9 @@ class Teams extends NotificationProvider { */ _statusMessageFactory = (status, monitorName) => { if (status === DOWN) { - return `🔴 [${monitorName}] went down`; + return `[${monitorName}] went down`; } else if (status === UP) { - return `✅ [${monitorName}] is back online`; + return `[${monitorName}] is back online`; } return "Notification"; }; @@ -82,8 +82,6 @@ class Teams extends NotificationProvider { }); } - const headerMessage = `**${notificationMessage}**`; - const payload = { "type": "message", "attachments": [ @@ -123,7 +121,7 @@ class Teams extends NotificationProvider { "type": "TextBlock", "size": "Medium", "weight": "Bolder", - "text": headerMessage, + "text": `**${notificationMessage}**`, }, { "type": "TextBlock", @@ -141,7 +139,7 @@ class Teams extends NotificationProvider { }, { "type": "FactSet", - "separator": true, + "separator": false, "facts": facts } ],