mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
GetAllAssets fix
This commit is contained in:
parent
7f9350659e
commit
5e885e3583
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ func (s *SmartContract) GetAllAssets(ctx contractapi.TransactionContextInterface
|
||||||
err = json.Unmarshal(queryResponse.Value, &data)
|
err = json.Unmarshal(queryResponse.Value, &data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if _, ok := data["Id"]; ok {
|
} else {
|
||||||
var dataSruct Data
|
var dataSruct Data
|
||||||
err = json.Unmarshal(queryResponse.Value, &dataSruct)
|
err = json.Unmarshal(queryResponse.Value, &dataSruct)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue