fix func RecordingRuleGetsByCluster

This commit is contained in:
Ulric Qin 2022-07-13 11:01:27 +08:00
parent 538880b0e0
commit a285966560
1 changed files with 1 additions and 1 deletions

View File

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