fix retrieve channel
This commit is contained in:
parent
c9e68dd533
commit
c9d747d7a4
|
@ -78,6 +78,7 @@ func RetrieveChannel(ch *alerting.Channel) (*alerting.Channel, error) {
|
||||||
}
|
}
|
||||||
if ch.ID != "" {
|
if ch.ID != "" {
|
||||||
refCh := &alerting.Channel{}
|
refCh := &alerting.Channel{}
|
||||||
|
refCh.ID = ch.ID
|
||||||
_, err := orm.Get(refCh)
|
_, err := orm.Get(refCh)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue