Skip to content

Commit

Permalink
add support for isRelayed filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cfaur09 committed Oct 8, 2024
1 parent b76fa1c commit 6a467d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/indexer/elastic/elastic.indexer.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ export class ElasticIndexerHelper {
elasticQuery = elasticQuery.withMustMatchCondition('relayerAddr', filter.relayer);
}

if (filter.isRelayed) {
elasticQuery = elasticQuery.withMustMatchCondition('isRelayed', filter.isRelayed);
}

if (filter.type) {
elasticQuery = elasticQuery.withCondition(QueryConditionOptions.must, QueryType.Match('type', filter.type === TransactionType.Transaction ? 'normal' : 'unsigned'));
}
Expand Down

0 comments on commit 6a467d8

Please sign in to comment.