From db6049bab345b497baebe723a5b2cf8b3c295979 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 23 Jan 2025 14:47:17 +0100 Subject: [PATCH] light modification --- models/collaborative_area/collaborative_area_mongo_accessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/collaborative_area/collaborative_area_mongo_accessor.go b/models/collaborative_area/collaborative_area_mongo_accessor.go index 10a6275..b2dcbcb 100644 --- a/models/collaborative_area/collaborative_area_mongo_accessor.go +++ b/models/collaborative_area/collaborative_area_mongo_accessor.go @@ -69,7 +69,7 @@ func (a *collaborativeAreaMongoAccessor) StoreOne(data utils.DBObject) (utils.DB // retrieve or proper peer dd, code, err := a.peerAccessor.Search(&dbs.Filters{ Or: map[string][]dbs.Filter{ - "state": {{Operator: dbs.EQUAL.String(), Value: 0}}, + "state": {{Operator: dbs.EQUAL.String(), Value: peer.SELF.EnumIndex()}}, }}, "", false) fmt.Println(dd, code, err) if code != 200 || dd == nil || len(dd) == 0 {