diff --git a/automation/service/trigger.go b/automation/service/trigger.go index 3cb8e5c83..7c252bf6e 100644 --- a/automation/service/trigger.go +++ b/automation/service/trigger.go @@ -699,7 +699,7 @@ func validateWorkflowTriggers(wf *types.Workflow, tt ...*types.Trigger) (wis typ ) for i, t := range tt { - if !t.Enabled { + if !t.Enabled || t.DeletedAt != nil { continue } diff --git a/automation/service/workflow.go b/automation/service/workflow.go index 1925b36ef..e05837578 100644 --- a/automation/service/workflow.go +++ b/automation/service/workflow.go @@ -661,7 +661,7 @@ func (svc *workflow) validateWorkflow(ctx context.Context, wf *types.Workflow) ( tt, _, err := store.SearchAutomationTriggers(ctx, svc.store, types.TriggerFilter{ WorkflowID: types.WorkflowSet{wf}.IDs(), - Deleted: filter.StateInclusive, + Deleted: filter.StateExcluded, Disabled: filter.StateExcluded, })