correct execution

This commit is contained in:
pb 2024-08-07 12:27:29 +02:00
parent b7c4a78158
commit af9e7d8edd

View File

@ -35,7 +35,7 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet
}
if delete {
mongo.MONGOService.DeleteMultiple(map[string]interface{}{
"workflow_id": realData.UUID,
"workflow_id": id,
}, utils.WORKFLOW_EXECUTION.String())
}
if realData.Schedule != nil {
@ -62,7 +62,7 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet
ExecDate: &s,
EndDate: realData.Schedule.End,
State: 1,
WorkflowID: realData.UUID,
WorkflowID: id,
}
accessor.StoreOne(obj)
}
@ -75,7 +75,7 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet
ExecDate: realData.Schedule.Start,
EndDate: realData.Schedule.End,
State: 1,
WorkflowID: realData.UUID,
WorkflowID: id,
}
accessor.StoreOne(obj)
}