From 2525cc77838e28ef0be738f1662f64473a6163c9 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 2 Aug 2024 16:02:23 +0200 Subject: [PATCH] mongo and or --- models/workflow/workflow_mongo_accessor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index c3c6d78..6ff1e11 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in obj := &workflow_execution.WorkflowExecution{ ExecDate: &s, EndDate: realData.Schedule.End, - State: workflow_execution.SCHEDULED.EnumIndex(), + State: 0, WorkflowID: realData.UUID, } accessor.StoreOne(obj) @@ -61,7 +61,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in obj := &workflow_execution.WorkflowExecution{ ExecDate: realData.Schedule.Start, EndDate: realData.Schedule.End, - State: workflow_execution.SCHEDULED.EnumIndex(), + State: 0, WorkflowID: realData.UUID, } accessor.StoreOne(obj)