diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index 428808f..a0e782b 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -1,6 +1,8 @@ package workflow import ( + "fmt" + "cloud.o-forge.io/core/oc-lib/dbs" "cloud.o-forge.io/core/oc-lib/logs" "cloud.o-forge.io/core/oc-lib/models/collaborative_area/shallow_collaborative_area" @@ -89,6 +91,7 @@ func (a *workflowMongoAccessor) share(realData *Workflow, delete bool, caller *t // UpdateOne updates a workflow in the database func (a *workflowMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) { // avoid the update if the schedule is the same + fmt.Println(len(set.(*Workflow).Graph.Links)) res, code, err := utils.GenericUpdateOne(set, id, a, &Workflow{}) if code != 200 { return nil, code, err