GetAllAssets fix

This commit is contained in:
ofgarzon2662 2023-02-28 15:04:30 -08:00
parent 7f9350659e
commit 5e885e3583

View file

@ -213,7 +213,7 @@ func (s *SmartContract) GetAllAssets(ctx contractapi.TransactionContextInterface
err = json.Unmarshal(queryResponse.Value, &data)
if err != nil {
return nil, err
} else if _, ok := data["Id"]; ok {
} else {
var dataSruct Data
err = json.Unmarshal(queryResponse.Value, &dataSruct)
if err != nil {