mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-10 09:44:02 +08:00
fix adding optional ActionSet
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user