repair accessor call
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user