correct execution
This commit is contained in:
parent
b7c4a78158
commit
af9e7d8edd
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user