From 898700d127b5d759ce4375bbcdb765c7d4513522 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 19 Nov 2024 14:03:41 +0100 Subject: [PATCH] hard stuff --- .../collaborative_area/collaborative_area_mongo_accessor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/collaborative_area/collaborative_area_mongo_accessor.go b/models/collaborative_area/collaborative_area_mongo_accessor.go index a889063..76f3224 100644 --- a/models/collaborative_area/collaborative_area_mongo_accessor.go +++ b/models/collaborative_area/collaborative_area_mongo_accessor.go @@ -189,10 +189,10 @@ func (wfa *collaborativeAreaMongoAccessor) sendToPeer(shared *CollaborativeArea) 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.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) - wfa.sendToPeer(res.(*CollaborativeArea)) // send the collaborative area (collaborative area object) to the peers + // wfa.sendToPeer(res.(*CollaborativeArea)) // send the collaborative area (collaborative area object) to the peers return res, code, err }