From b96c90bfa358197c3c77f832e055286d2e113f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Th=C3=A0nh=20Phong?= <49814372+phamphong9981@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:26:51 +0700 Subject: [PATCH] fix: reindex migrate contract (#501) --- 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) => {