mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-10 03:19:55 +08:00
fix test notification after method refactoring
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user