Removed invalid await

Signed-off-by: Matthias Sieber <matthias.sieber@loxeinc.com>
This commit is contained in:
Matthias Sieber 2022-10-24 18:39:21 -07:00
parent 197a07b2d2
commit a0e767d838

View file

@ -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 {