fix: get alert rules by api (#1059)

* fix event push api
This commit is contained in:
Yening Qin 2022-07-19 12:10:02 +08:00 committed by GitHub
parent ab0cb6fc47
commit ba6f089c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ func AlertRuleGetsByCluster(cluster string) ([]*AlertRule, error) {
}
func AlertRulesGetsBy(prods []string, query string) ([]*AlertRule, error) {
session := DB().Where("disabled = ? and prod in (?)", 0, prods)
session := DB().Where("prod in (?)", prods)
if query != "" {
arr := strings.Fields(query)