alert mute cannot refresh the bug (#1242)

bugfix:mute cannot be refreshed after being modified
This commit is contained in:
chenginger 2022-11-01 15:41:01 +08:00 committed by GitHub
parent 5332f797a6
commit 106a8e490a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ func AlertMuteStatistics(cluster string) (*Statistics, error) {
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 != "" {
session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll)
}