light modification

This commit is contained in:
mr 2025-01-23 12:49:59 +01:00
parent 1952d905d2
commit 49e495f062

View File

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