This commit is contained in:
Arnaud Delcasse
2025-10-10 15:12:58 +02:00
parent 0285c94946
commit ec939649e8

View File

@@ -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")
}