Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/services/blocks-service/blocks-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BlocksService implements IBlocksService {
const dateTimeGte = query?.dateTime_gte;
const dateTimeLt = query?.dateTime_lt;
const canonical = query?.canonical ?? false;
const orderBy = sortBy === 'BLOCKHEIGHT_DESC' ? 'DESC' : 'ASC';
const orderBy: 'ASC' | 'DESC' = sortBy === 'BLOCKHEIGHT_DESC' ? 'DESC' : 'ASC';
const limitValue = Math.min(limit ?? 200, BLOCK_RANGE_SIZE);

// Build the SQL query for blocks with transactions
Expand Down