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{
|
And: map[string][]dbs.Filter{
|
||||||
"state": {{Operator: dbs.EQUAL.String(), Value: 0}},
|
"state": {{Operator: dbs.EQUAL.String(), Value: 0}},
|
||||||
}}, "", true)
|
}}, "", true)
|
||||||
if code != 200 || dd == nil || len(dd) == 0 {
|
fmt.Println(dd, code, err)
|
||||||
return nil, code, errors.New("Could not retrieve the peer" + err.Error())
|
if code != 200 || dd == nil {
|
||||||
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user