From 4aaa0b92fb96ff6c47d50e42451c085dfb493f16 Mon Sep 17 00:00:00 2001 From: taschenuhr Date: Thu, 7 Mar 2024 15:11:19 +0100 Subject: [PATCH] fix test notification after method refactoring --- server/notification-providers/teams.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/teams.js b/server/notification-providers/teams.js index e8aab1a4..bf2cd764 100644 --- a/server/notification-providers/teams.js +++ b/server/notification-providers/teams.js @@ -52,7 +52,7 @@ class Teams extends NotificationProvider { monitorUrl, dashboardUrl, }) => { - const status = heartbeatJSON.status; + const status = heartbeatJSON?.status; const facts = []; const actions = []; @@ -196,7 +196,9 @@ class Teams extends NotificationProvider { */ _handleGeneralNotification = (webhookUrl, msg) => { const payload = this._notificationPayloadFactory({ - monitorMessage: msg + heartbeatJSON: { + msg: msg + } }); return this._sendNotification(webhookUrl, payload);