Skip to content

Commit

Permalink
fix /receipts/contracts order by
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Dec 19, 2024
1 parent cf24633 commit ba3ea53
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 @@ -91,8 +91,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 ba3ea53

Please sign in to comment.