fix: AlertRuleExists

This commit is contained in:
ning 2025-07-27 13:28:46 +08:00
parent 1bdfa3e032
commit f958f27de1
1 changed files with 1 additions and 4 deletions

View File

@ -1009,11 +1009,8 @@ func AlertRuleExists(ctx *ctx.Context, id, groupId int64, name string) (bool, er
if err != nil {
return false, err
}
if len(lst) == 0 {
return false, nil
}
return false, nil
return len(lst) > 0, nil
}
func GetAlertRuleIdsByTaskId(ctx *ctx.Context, taskId int64) ([]int64, error) {