diff --git a/packages/entity-invalidator/src/index.ts b/packages/entity-invalidator/src/index.ts index 78e6cf2c9..13b7c3982 100644 --- a/packages/entity-invalidator/src/index.ts +++ b/packages/entity-invalidator/src/index.ts @@ -15,7 +15,7 @@ async function run() { let lastId = null; let entities; - const lastIdWhere = {}; + const lastIdWhere: any = {}; const whereClause = { [Op.or]: [ { @@ -96,7 +96,7 @@ async function run() { }) .promise(); - lastId = entities[entities.length - 1].id; + lastId = entities[entities.length - 1].address; totalProgress += entities.length; console.log(`Processed ${totalProgress} / ${totalCount}`); }