diff --git a/src/models/alert_rule.go b/src/models/alert_rule.go index d6fbb7a1..1fc9ed63 100644 --- a/src/models/alert_rule.go +++ b/src/models/alert_rule.go @@ -163,6 +163,10 @@ func (ar *AlertRule) Update(arf AlertRule) error { arf.CreateBy = ar.CreateBy arf.UpdateAt = time.Now().Unix() + err = arf.Verify() + if err != nil { + return err + } return DB().Model(ar).Select("*").Updates(arf).Error }