diff --git a/src/services/cw721/cw721-reindexing.service.ts b/src/services/cw721/cw721-reindexing.service.ts index 31102ed5d..b5f279662 100644 --- a/src/services/cw721/cw721-reindexing.service.ts +++ b/src/services/cw721/cw721-reindexing.service.ts @@ -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[], smartContract) => {