Skip to content

Commit

Permalink
refactor: use fast_page to query contract's tx (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid authored Aug 12, 2024
1 parent 754bd3d commit 5e65c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v2/scripts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def ckb_transactions
if @contract.ckb_transactions_count.zero?
CkbTransaction.none
else
@contract.ckb_transactions.order(block_number: :desc).page(@page).per(@page_size)
@contract.ckb_transactions.order(block_number: :desc).page(@page).per(@page_size).fast_page
end
end

Expand Down

0 comments on commit 5e65c83

Please sign in to comment.