Fix run-as issue persistance after trigger was removed
This commit is contained in:
parent
ff00bb889d
commit
87f08d8bfb
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user