light modification

This commit is contained in:
mr 2025-01-23 11:31:56 +01:00
parent ad660b0ce8
commit e9017767d1

View File

@ -73,7 +73,7 @@ func (a *collaborativeAreaMongoAccessor) StoreOne(data utils.DBObject) (utils.DB
}}, "", true) }}, "", true)
fmt.Println(dd, code, err) fmt.Println(dd, code, err)
if code != 200 || dd == nil { if code != 200 || dd == nil {
return nil, code, errors.New("Could not retrieve the peer") return nil, code, errors.New("could not retrieve the peer")
} }
data.(*CollaborativeArea).CollaborativeAreaRule.Creator = dd[0].GetID() data.(*CollaborativeArea).CollaborativeAreaRule.Creator = dd[0].GetID()
d, code, err := utils.GenericStoreOne(data.(*CollaborativeArea).Trim(), a) d, code, err := utils.GenericStoreOne(data.(*CollaborativeArea).Trim(), a)