Skip to content

Commit

Permalink
resolve interface issue with child/parent DAS queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 2, 2022
1 parent 843753d commit 108ce55
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions services/dbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 108ce55

Please sign in to comment.