fix missing webhook url

This commit is contained in:
liugq 2023-08-07 11:29:17 +08:00
parent c9d747d7a4
commit 9ad513d307
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ func RetrieveChannel(ch *alerting.Channel) (*alerting.Channel, error) {
case alerting.ChannelWebhook:
if ch.Webhook == nil {
ch.Webhook = refCh.Webhook
}else {
ch.Webhook.URL = refCh.Webhook.URL
}
}
}