fix: plan _system_ not found bug when running health operations

This commit is contained in:
Gareth
2024-07-12 13:58:16 -07:00
committed by GitHub
parent 0d98e4447b
commit c19665ab06
-3
View File
@@ -22,9 +22,6 @@ func TasksTriggeredByEvent(config *v1.Config, repoID string, planID string, pare
return nil, fmt.Errorf("repo %v not found", repoID)
}
plan := cfg.FindPlan(config, planID)
if plan == nil && planID != "" {
return nil, fmt.Errorf("plan %v not found", planID)
}
for idx, hook := range repo.GetHooks() {
event := firstMatchingCondition(hook, events)