From 66f2b45856c381f048da2b77d87a874e283807d0 Mon Sep 17 00:00:00 2001 From: phamphong9981 Date: Mon, 27 Nov 2023 17:13:09 +0700 Subject: [PATCH] fix: reindex migrate contract --- src/services/cw721/cw721-reindexing.service.ts | 1 + 1 file changed, 1 insertion(+) 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) => {