Fix Find
This commit is contained in:
		
							parent
							
								
									0285c94946
								
							
						
					
					
						commit
						ec939649e8
					
				| 
						 | 
				
			
			@ -103,7 +103,7 @@ func (s *AdminMemoryRTreeIndex) GeoSearch(feature *geojson.Feature) (map[string]
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
func (s *AdminMemoryRTreeIndex) Find(layer, id string) (*geojson.Feature, error) {
 | 
			
		||||
	result, ok := s.Documents["layer"]["id"]
 | 
			
		||||
	result, ok := s.Documents[layer][id]
 | 
			
		||||
	if !ok || result == nil {
 | 
			
		||||
		return nil, errors.New("admin not found")
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue