Merge branch 'main' of github.com:ccfos/nightingale

This commit is contained in:
Ulric Qin 2022-11-02 08:35:06 +08:00
commit 65d8f80637
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }