mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
fix not utilizing fetched address
This commit is contained in:
parent
4b3ad53512
commit
6eaf6b409c
1 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@ class Slack extends NotificationProvider {
|
|||
|
||||
}
|
||||
|
||||
if (this.extractAdress(monitorJSON)) {
|
||||
const address = this.extractAdress(monitorJSON);
|
||||
if (address) {
|
||||
actions.push({
|
||||
"type": "button",
|
||||
"text": {
|
||||
|
@ -56,7 +57,7 @@ class Slack extends NotificationProvider {
|
|||
"text": "Visit site",
|
||||
},
|
||||
"value": "Site",
|
||||
"url": monitorJSON.url,
|
||||
"url": address,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue