fix test notification after method refactoring

This commit is contained in:
taschenuhr 2024-03-07 15:11:19 +01:00
parent 8bd69d78a8
commit 4aaa0b92fb

View file

@ -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);