mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
fix adding optional ActionSet
This commit is contained in:
parent
b8941403d1
commit
cc09147b4b
1 changed files with 9 additions and 11 deletions
|
@ -151,8 +151,7 @@ class Teams extends NotificationProvider {
|
|||
};
|
||||
|
||||
if (dashboardUrl) {
|
||||
payload.attachments.forEach(element => {
|
||||
element.content.push({
|
||||
payload.attachments[0].content.body.push({
|
||||
"type": "ActionSet",
|
||||
"actions": [
|
||||
{
|
||||
|
@ -162,7 +161,6 @@ class Teams extends NotificationProvider {
|
|||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return payload;
|
||||
|
|
Loading…
Reference in a new issue