Skip to content

Commit

Permalink
fix /receipts order by
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Dec 19, 2024
1 parent 8215582 commit cf24633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-http/source/controllers/receipts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export class ReceiptsController extends Controller {
}

const [receipts, totalCount] = await query
.orderBy("transaction.sequence", "DESC")
.addOrderBy("transaction.blockHeight", "DESC")
.orderBy("transaction.blockHeight", "DESC")
.addOrderBy("transaction.sequence", "DESC")
.offset(pagination.offset)
.limit(pagination.limit)
.select()
Expand Down

0 comments on commit cf24633

Please sign in to comment.