From c9d747d7a4c0289ce4a842c0e59c437581e15c53 Mon Sep 17 00:00:00 2001 From: liugq Date: Mon, 7 Aug 2023 07:59:20 +0800 Subject: [PATCH] fix retrieve channel --- service/alerting/common/helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/alerting/common/helper.go b/service/alerting/common/helper.go index d89ba4a2..56121f24 100644 --- a/service/alerting/common/helper.go +++ b/service/alerting/common/helper.go @@ -78,6 +78,7 @@ func RetrieveChannel(ch *alerting.Channel) (*alerting.Channel, error) { } if ch.ID != "" { refCh := &alerting.Channel{} + refCh.ID = ch.ID _, err := orm.Get(refCh) if err != nil { return nil, err