From aab0d54dfa2b6f161dc4cd1d320a8df6409ba813 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 19 Nov 2024 13:28:01 +0100 Subject: [PATCH] hard stuff --- models/collaborative_area/collaborative_area_mongo_accessor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/collaborative_area/collaborative_area_mongo_accessor.go b/models/collaborative_area/collaborative_area_mongo_accessor.go index 337bf7b..a889063 100644 --- a/models/collaborative_area/collaborative_area_mongo_accessor.go +++ b/models/collaborative_area/collaborative_area_mongo_accessor.go @@ -188,6 +188,7 @@ func (wfa *collaborativeAreaMongoAccessor) sendToPeer(shared *CollaborativeArea) // UpdateOne updates a collaborative area in the database, given its ID and the new data, it automatically share to peers if the workspace is shared func (wfa *collaborativeAreaMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) { res, code, err := wfa.GenericUpdateOne(set.(*CollaborativeArea), id, wfa, &CollaborativeArea{}) + fmt.Println("UpdateOne", set, res, code, err) wfa.deleteToPeer(res.(*CollaborativeArea)) // delete the collaborative area on the peer wfa.sharedWorkflow(res.(*CollaborativeArea), id) // replace all shared workflows wfa.sharedWorkspace(res.(*CollaborativeArea), id) // replace all collaborative areas (not shared worspace obj but workspace one)