Skip to content

Commit

Permalink
update getTxDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmatei committed Nov 26, 2024
1 parent f9b645f commit 32e8388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/common/src/services/indexer/indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
]);
Expand All @@ -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 [];
Expand Down

0 comments on commit 32e8388

Please sign in to comment.