diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index c551e4e..9fe3620 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -124,9 +124,9 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (* return ws, nil, []*WorkflowExecution{}, errors.New("purge draft" + fmt.Sprintf("%v", err)) } exec.StoreDraftDefault() - // Should DELETE the previous execution2 - fmt.Println(utils.GenericStoreOne(exec, NewAccessor(request))) + utils.GenericStoreOne(exec, NewAccessor(request)) } + fmt.Println("Schedules") return ws, wf, executions, nil }