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 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;