未验证 提交 106a8e49 编写于 作者: C chenginger 提交者: GitHub

alert mute cannot refresh the bug (#1242)

bugfix:mute cannot be refreshed after being modified
上级 5332f797
...@@ -174,7 +174,7 @@ func AlertMuteStatistics(cluster string) (*Statistics, error) { ...@@ -174,7 +174,7 @@ func AlertMuteStatistics(cluster string) (*Statistics, error) {
return nil, err return nil, err
} }
session := DB().Model(&AlertMute{}).Select("count(*) as total", "max(create_at) as last_updated") session := DB().Model(&AlertMute{}).Select("count(*) as total", "max(update_at) as last_updated")
if cluster != "" { if cluster != "" {
session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll) session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册