Skip to content

Commit

Permalink
Merge pull request #2185 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
rabbitz committed Sep 10, 2024
2 parents ce92264 + 1901d01 commit 3102c4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/interactions/addresses/ckb_transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def transactions_ordering
end

def paginate_options(records, address_id)
total_count = AccountBook.where(address_id:).distinct.count(:ckb_transaction_id)
total_count = AccountBook.includes(:ckb_transaction).where(
account_books: { address_id: },
ckb_transactions: { tx_status: :committed },
).distinct.count(:ckb_transaction_id)
FastJsonapi::PaginationMetaGenerator.new(
request:, records:, page:, page_size:, total_count:,
).call
Expand Down

0 comments on commit 3102c4e

Please sign in to comment.