Skip to content

Commit d9020a5

Browse files
committed
firt sorting criteria in seconds
1 parent a427706 commit d9020a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/indexer/elastic/elastic.indexer.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,8 @@ export class ElasticIndexerService implements IndexerInterface {
10651065
.withMustCondition(timestampQuery)
10661066
.withCondition(QueryConditionOptions.must, [QueryType.Match('shardId', shardId, QueryOperator.AND)])
10671067
.withSort([
1068-
{ name: 'timestampMs', order: ElasticSortOrder.ascending },
10691068
{ name: 'timestamp', order: ElasticSortOrder.ascending },
1069+
{ name: 'timestampMs', order: ElasticSortOrder.ascending },
10701070
]);
10711071

10721072
const blocks: Block[] = await this.elasticService.getList('blocks', '_search', elasticQuery);

0 commit comments

Comments
 (0)