mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
fix test notification after method refactoring
This commit is contained in:
parent
8bd69d78a8
commit
4aaa0b92fb
1 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,7 @@ class Teams extends NotificationProvider {
|
||||||
monitorUrl,
|
monitorUrl,
|
||||||
dashboardUrl,
|
dashboardUrl,
|
||||||
}) => {
|
}) => {
|
||||||
const status = heartbeatJSON.status;
|
const status = heartbeatJSON?.status;
|
||||||
const facts = [];
|
const facts = [];
|
||||||
const actions = [];
|
const actions = [];
|
||||||
|
|
||||||
|
@ -196,7 +196,9 @@ class Teams extends NotificationProvider {
|
||||||
*/
|
*/
|
||||||
_handleGeneralNotification = (webhookUrl, msg) => {
|
_handleGeneralNotification = (webhookUrl, msg) => {
|
||||||
const payload = this._notificationPayloadFactory({
|
const payload = this._notificationPayloadFactory({
|
||||||
monitorMessage: msg
|
heartbeatJSON: {
|
||||||
|
msg: msg
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return this._sendNotification(webhookUrl, payload);
|
return this._sendNotification(webhookUrl, payload);
|
||||||
|
|
Loading…
Reference in a new issue