Skip to content

Commit

Permalink
fix: reindex migrate contract (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 authored Nov 27, 2023
1 parent d49c9dd commit b96c90b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/cw721/cw721-reindexing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export default class CW721ReindexingService extends BullableService {
const { contractAddresses, type } = ctx.params;
const smartContracts = await SmartContract.query()
.withGraphJoined('code')
.where('smart_contract.status', SmartContract.STATUS.LATEST)
.whereIn('address', contractAddresses);
await Promise.all(
smartContracts.reduce((acc: Promise<void>[], smartContract) => {
Expand Down

0 comments on commit b96c90b

Please sign in to comment.