mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
fix adding optional ActionSet
This commit is contained in:
parent
b8941403d1
commit
cc09147b4b
@ -151,8 +151,7 @@ class Teams extends NotificationProvider {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (dashboardUrl) {
|
if (dashboardUrl) {
|
||||||
payload.attachments.forEach(element => {
|
payload.attachments[0].content.body.push({
|
||||||
element.content.push({
|
|
||||||
"type": "ActionSet",
|
"type": "ActionSet",
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
@ -162,7 +161,6 @@ class Teams extends NotificationProvider {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return payload;
|
return payload;
|
||||||
|
Loading…
Reference in New Issue
Block a user