mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 19:15: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 startKey = '';
|
||||||
const endKey = '';
|
const endKey = '';
|
||||||
const allResults = [];
|
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');
|
const strValue = Buffer.from(value).toString('utf8');
|
||||||
let record;
|
let record;
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue