mongo and or

This commit is contained in:
mr 2024-08-02 16:02:23 +02:00
parent 09b67b26b0
commit 2525cc7783

View File

@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
obj := &workflow_execution.WorkflowExecution{ obj := &workflow_execution.WorkflowExecution{
ExecDate: &s, ExecDate: &s,
EndDate: realData.Schedule.End, EndDate: realData.Schedule.End,
State: workflow_execution.SCHEDULED.EnumIndex(), State: 0,
WorkflowID: realData.UUID, WorkflowID: realData.UUID,
} }
accessor.StoreOne(obj) accessor.StoreOne(obj)
@ -61,7 +61,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
obj := &workflow_execution.WorkflowExecution{ obj := &workflow_execution.WorkflowExecution{
ExecDate: realData.Schedule.Start, ExecDate: realData.Schedule.Start,
EndDate: realData.Schedule.End, EndDate: realData.Schedule.End,
State: workflow_execution.SCHEDULED.EnumIndex(), State: 0,
WorkflowID: realData.UUID, WorkflowID: realData.UUID,
} }
accessor.StoreOne(obj) accessor.StoreOne(obj)