still prospecting

This commit is contained in:
mr
2026-06-02 14:03:30 +02:00
parent 8155f4b17a
commit dffaa6326f
+3 -3
View File
@@ -180,12 +180,12 @@ func FiltersFromFlatMap(flatMap map[string]interface{}, target interface{}) *Fil
} }
for jsonKey, val := range m { for jsonKey, val := range m {
bsonKey := resolve(jsonKey) bsonKey := resolve(jsonKey)
items, ok := val.([]interface{}) //items, ok := val.([]interface{})
fmt.Println(jsonKey, val, ok, bsonKey) fmt.Println(jsonKey, val, bsonKey)
if !ok { if !ok {
continue continue
} }
for _, item := range items { for _, item := range val.([]interface{}) {
entry, ok := item.(map[string]interface{}) entry, ok := item.(map[string]interface{})
if !ok { if !ok {
continue continue