light modification
This commit is contained in:
parent
d15fdac27b
commit
ad660b0ce8
@ -71,8 +71,9 @@ func (a *collaborativeAreaMongoAccessor) StoreOne(data utils.DBObject) (utils.DB
|
||||
And: map[string][]dbs.Filter{
|
||||
"state": {{Operator: dbs.EQUAL.String(), Value: 0}},
|
||||
}}, "", true)
|
||||
if code != 200 || dd == nil || len(dd) == 0 {
|
||||
return nil, code, errors.New("Could not retrieve the peer" + err.Error())
|
||||
fmt.Println(dd, code, err)
|
||||
if code != 200 || dd == nil {
|
||||
return nil, code, errors.New("Could not retrieve the peer")
|
||||
}
|
||||
data.(*CollaborativeArea).CollaborativeAreaRule.Creator = dd[0].GetID()
|
||||
d, code, err := utils.GenericStoreOne(data.(*CollaborativeArea).Trim(), a)
|
||||
|
Loading…
Reference in New Issue
Block a user