From a285966560a2ded25627dc919869a94a12933e9a Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 13 Jul 2022 11:01:27 +0800 Subject: [PATCH] fix func RecordingRuleGetsByCluster --- src/models/recording_rule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/recording_rule.go b/src/models/recording_rule.go index 801e15ab..c39da861 100644 --- a/src/models/recording_rule.go +++ b/src/models/recording_rule.go @@ -194,7 +194,7 @@ func RecordingRuleGetById(id int64) (*RecordingRule, error) { } func RecordingRuleGetsByCluster(cluster string) ([]*RecordingRule, error) { - session := DB().Where("disabled = ? and prod = ?", 0, "") + session := DB().Where("disabled = ?", 0) if cluster != "" { session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll)