From 97d466818af073bcd90ff8949f9d8a80877c962f Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 24 Jan 2025 10:55:57 +0100 Subject: [PATCH] light modification --- models/workflow_execution/workflow_scheduler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index 3398371..b5727a7 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -113,6 +113,7 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (* return nil, []*WorkflowExecutions{}, errors.New("purge draft" + fmt.Sprintf("%v", err)) } exec.GenerateID() + exec.StoreDraftDefault() // Should DELETE the previous execution2 utils.GenericStoreOne(exec, NewAccessor(request)) }