From 7f4a01c6eb2a327faf9700973b28855636c2c1c8 Mon Sep 17 00:00:00 2001 From: danielailie Date: Wed, 27 Sep 2023 14:43:52 +0300 Subject: [PATCH 1/2] fix Account orders nfts --- src/modules/assets/assets-getter.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/assets/assets-getter.service.ts b/src/modules/assets/assets-getter.service.ts index 8bde89ff9..9ae55bbcf 100644 --- a/src/modules/assets/assets-getter.service.ts +++ b/src/modules/assets/assets-getter.service.ts @@ -42,7 +42,7 @@ export class AssetsGetterService { ) {} async getAssetsForUser(address: string, query: string = '', countQuery: string = ''): Promise> { - query = new AssetsQuery(query).addQuery('includeFlagged=true').build(); + query = new AssetsQuery(query).addQuery('includeFlagged=true&source=elastic').build(); countQuery = new AssetsQuery(countQuery).addQuery('includeFlagged=true').build(); const [nfts, count] = await Promise.all([ this.apiService.getNftsForUser(address, query), From 6c9b4ab07d8f10acb897ec4c6474ea9c3b533721 Mon Sep 17 00:00:00 2001 From: danielailie Date: Thu, 25 Jul 2024 15:25:35 +0300 Subject: [PATCH 2/2] increase timeout before scam chack --- .../elastic-updates/elastic-updates-events.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rabbitmq/elastic-updates/elastic-updates-events.service.ts b/src/modules/rabbitmq/elastic-updates/elastic-updates-events.service.ts index 18c577952..5f6960f58 100644 --- a/src/modules/rabbitmq/elastic-updates/elastic-updates-events.service.ts +++ b/src/modules/rabbitmq/elastic-updates/elastic-updates-events.service.ts @@ -23,7 +23,7 @@ export class ElasticUpdatesEventsService { private readonly documentDbService: DocumentDbService, private readonly redisCacheService: RedisCacheService, private readonly mxApiService: MxApiService, - ) {} + ) { } public async handleNftMintEvents(mintEvents: any[], hash: string): Promise { await new Promise((resolve) => setTimeout(resolve, 10000)); @@ -111,7 +111,7 @@ export class ElasticUpdatesEventsService { } public async handleScamInfoForNftMintBurnAndUpdateEvents(mintEvents: any[]): Promise { - await new Promise((resolve) => setTimeout(resolve, 5000)); + await new Promise((resolve) => setTimeout(resolve, 10000)); let nftsToUpdate: Asset[] = []; let nftsToDelete: string[] = [];