repair accessor call

This commit is contained in:
mr
2024-07-30 08:52:14 +02:00
parent 0e96b5c01a
commit 5ab011844d
2 changed files with 8 additions and 8 deletions

View File

@@ -24,10 +24,10 @@ func (wfa *WorkflowMongoAccessor) execution(realData *Workflow, delete bool) (in
if delete {
mongo.MONGOService.DeleteMultiple(map[string]interface{}{
"workflow_id": realData.UUID,
}, wfa.GetType())
}, utils.WORKFLOW_EXECUTION.String())
}
if realData.Schedule != nil {
accessor := workflow_execution.WorkflowExecutionMongoAccessor{}
accessor := (&workflow_execution.WorkflowExecution{}).GetAccessor()
if realData.Schedule.Start.IsZero() {
return 422, errors.New("should get a start date on the scheduler.")
}
@@ -94,7 +94,7 @@ func (wfa *WorkflowMongoAccessor) LoadOne(id string) (utils.DBObject, int, error
}
res_mongo.Decode(&workflow)
// add to workspace
access := workspace.WorkspaceMongoAccessor{}
access := (&workspace.Workspace{}).GetAccessor()
ws, _, err := mongo.MONGOService.LoadFilter(map[string]interface{}{
"active": true,
}, utils.WORKSPACE.String())