Skip to content

Commit

Permalink
fix: reindex migrate contract
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 committed Nov 27, 2023
1 parent 3f1ee3a commit 66f2b45
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 66f2b45

Please sign in to comment.