Skip to content

Commit 7f24474

Browse files
committed
fix: make script for adding evm transaction metadata run until completion
1 parent 64b5f6c commit 7f24474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/fasset-indexer-core/src/scripts/add-evm-transaction-metadata.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ async function updateTransactions(context: Context) {
2929
tx.type = metadata.type
3030
await em.persistAndFlush(tx)
3131
}
32+
33+
return txs.length == TX_LIMIT
3234
}
3335

3436
async function main() {
3537
const config = new ConfigLoader()
3638
const context = await Context.create(config)
37-
await updateTransactions(context)
39+
while (await updateTransactions(context)) {}
3840
await context.orm.close()
3941
}
4042

0 commit comments

Comments
 (0)