mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Removed invalid await
Signed-off-by: Matthias Sieber <matthias.sieber@loxeinc.com>
This commit is contained in:
parent
197a07b2d2
commit
a0e767d838
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ class FabCar extends Contract {
|
|||
const startKey = '';
|
||||
const endKey = '';
|
||||
const allResults = [];
|
||||
for await (const { key, value } of ctx.stub.getStateByRange(startKey, endKey)) {
|
||||
for (const { key, value } of ctx.stub.getStateByRange(startKey, endKey)) {
|
||||
const strValue = Buffer.from(value).toString('utf8');
|
||||
let record;
|
||||
try {
|
||||
|
|
@ -142,4 +142,4 @@ class FabCar extends Contract {
|
|||
|
||||
}
|
||||
|
||||
module.exports = FabCar;
|
||||
module.exports = FabCar;
|
||||
|
|
|
|||
Loading…
Reference in a new issue