未验证 提交 f9af9163 编写于 作者: C chenxuan 提交者: GitHub

fix alert put api not verify bug (#987)

上级 90db12b5
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册