Skip to content

Commit

Permalink
Fix run-as issue persistance after trigger was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
darh committed Dec 15, 2021
1 parent ff00bb8 commit 87f08d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion automation/service/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion automation/service/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit 87f08d8

Please sign in to comment.