3
0

Fix run-as issue persistance after trigger was removed

This commit is contained in:
Denis Arh 2021-12-15 06:32:35 +01:00
parent ff00bb889d
commit 87f08d8bfb
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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,
})