From 32e8388a603bf1260431045973aa84438e90313f Mon Sep 17 00:00:00 2001 From: Gabriel Matei Date: Tue, 26 Nov 2024 14:45:06 +0200 Subject: [PATCH] update getTxDetails --- libs/common/src/services/indexer/indexer.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/common/src/services/indexer/indexer.service.ts b/libs/common/src/services/indexer/indexer.service.ts index eb7fba3..f5c970c 100644 --- a/libs/common/src/services/indexer/indexer.service.ts +++ b/libs/common/src/services/indexer/indexer.service.ts @@ -102,6 +102,7 @@ export class IndexerService { try { const query = ElasticQuery.create() .withPagination({ from: 0, size: 10000 }) + .withFields(['_id', 'txHash', 'sender', 'receiver', 'timestamp']) .withMustCondition([ QueryType.Should(txHashes.map(txHash => new MatchQuery("_id", txHash))), ]); @@ -110,7 +111,7 @@ export class IndexerService { return transactions; } catch (error) { - this.logger.error(`Failed to get txDetails`); + this.logger.error(`Failed to get transactions with txHashes: ${txHashes}`); this.logger.error(error); return [];