fix retrieve channel

This commit is contained in:
liugq 2023-08-07 07:59:20 +08:00
parent c9e68dd533
commit c9d747d7a4
1 changed files with 1 additions and 0 deletions

View File

@ -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