From 106a8e490a22ff9951cfc3fbf35048bcce71fb80 Mon Sep 17 00:00:00 2001 From: chenginger <42002616+chenginger@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:41:01 +0800 Subject: [PATCH] alert mute cannot refresh the bug (#1242) bugfix:mute cannot be refreshed after being modified --- src/models/alert_mute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/alert_mute.go b/src/models/alert_mute.go index 9d580428..bef8754d 100644 --- a/src/models/alert_mute.go +++ b/src/models/alert_mute.go @@ -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) }