adding inputs output struct based on argo naming for now
This commit is contained in:
@@ -67,10 +67,7 @@ func (a *collaborativeAreaMongoAccessor) StoreOne(data utils.DBObject) (utils.DB
|
||||
_, id := (&peer.Peer{}).IsMySelf() // get the local peer
|
||||
data.(*CollaborativeArea).Clear(id) // set the creator
|
||||
// retrieve or proper peer
|
||||
dd, code, err := a.peerAccessor.Search(&dbs.Filters{
|
||||
Or: map[string][]dbs.Filter{
|
||||
"state": {{Operator: dbs.EQUAL.String(), Value: peer.SELF.EnumIndex()}},
|
||||
}}, "", false)
|
||||
dd, code, err := a.peerAccessor.Search(nil, fmt.Sprintf("%v", peer.SELF.EnumIndex()), false)
|
||||
fmt.Println(dd, code, err)
|
||||
if code != 200 || dd == nil || len(dd) == 0 {
|
||||
return nil, code, errors.New("could not retrieve the peer")
|
||||
|
Reference in New Issue
Block a user