From 745bb58c593e590b15773ce950c057408bc07124 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 21 Jan 2025 14:10:07 +0100 Subject: [PATCH] light modification --- models/workflow/workflow_mongo_accessor.go | 3 +++ 1 file changed, 3 insertions(+) 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