light modification
This commit is contained in:
		@@ -69,7 +69,7 @@ func (a *collaborativeAreaMongoAccessor) StoreOne(data utils.DBObject) (utils.DB
 | 
			
		||||
	// retrieve or proper peer
 | 
			
		||||
	dd, code, err := a.peerAccessor.Search(&dbs.Filters{
 | 
			
		||||
		Or: map[string][]dbs.Filter{
 | 
			
		||||
			"state": {{Operator: dbs.EQUAL.String(), Value: 0}},
 | 
			
		||||
			"state": {{Operator: dbs.EQUAL.String(), Value: peer.SELF.EnumIndex()}},
 | 
			
		||||
		}}, "", false)
 | 
			
		||||
	fmt.Println(dd, code, err)
 | 
			
		||||
	if code != 200 || dd == nil || len(dd) == 0 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user