From 108ce55426f88d26c8cb99f0de76a7f9ee8de85e Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Wed, 2 Mar 2022 06:27:58 -0500 Subject: [PATCH] resolve interface issue with child/parent DAS queries --- services/dbs.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/dbs.go b/services/dbs.go index f518baf..6446d67 100644 --- a/services/dbs.go +++ b/services/dbs.go @@ -87,6 +87,10 @@ func DBSUnmarshal(api string, data []byte) []mongo.DASRecord { r["name"] = v.(string) out = append(out, r) } + case interface{}: + r := make(mongo.DASRecord) + r["name"] = val.(string) + out = append(out, r) } } return out @@ -99,6 +103,10 @@ func DBSUnmarshal(api string, data []byte) []mongo.DASRecord { r["name"] = v.(string) out = append(out, r) } + case interface{}: + r := make(mongo.DASRecord) + r["name"] = val.(string) + out = append(out, r) } } return out