mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-10 12:56:13 +08:00
fix adding optional ActionSet
This commit is contained in:
@@ -151,17 +151,15 @@ 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": [
|
{
|
||||||
{
|
"type": "Action.OpenUrl",
|
||||||
"type": "Action.OpenUrl",
|
"title": "Visit Uptime Kuma",
|
||||||
"title": "Visit Uptime Kuma",
|
"url": dashboardUrl
|
||||||
"url": dashboardUrl
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user