From 9ad513d307e6993f1e2498460286cedc80938294 Mon Sep 17 00:00:00 2001 From: liugq Date: Mon, 7 Aug 2023 11:29:17 +0800 Subject: [PATCH] fix missing webhook url --- service/alerting/common/helper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/alerting/common/helper.go b/service/alerting/common/helper.go index 56121f24..825b34a1 100644 --- a/service/alerting/common/helper.go +++ b/service/alerting/common/helper.go @@ -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 } } }