light modification

This commit is contained in:
mr 2025-01-22 13:12:14 +01:00
parent 062c1afe85
commit 86b1e4ad5d

View File

@ -106,7 +106,7 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (*
for _, exec := range executions { for _, exec := range executions {
err := exec.PurgeDraft(request) err := exec.PurgeDraft(request)
if err != nil { if err != nil {
return nil, []*WorkflowExecutions{}, errors.New("could not book the workflow" + fmt.Sprintf("%v", err)) return nil, []*WorkflowExecutions{}, errors.New("purge draft" + fmt.Sprintf("%v", err))
} }
exec.GenerateID() exec.GenerateID()
// Should DELETE the previous execution2 // Should DELETE the previous execution2