From 04020c08f3f19bc317f9f57826c27d06189cd532 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Wed, 11 Dec 2024 10:55:18 +0800 Subject: [PATCH] fix: address transactions query (#2332) --- app/interactions/addresses/ckb_transactions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/interactions/addresses/ckb_transactions.rb b/app/interactions/addresses/ckb_transactions.rb index 4a88a7f50..cb38536c6 100644 --- a/app/interactions/addresses/ckb_transactions.rb +++ b/app/interactions/addresses/ckb_transactions.rb @@ -16,7 +16,7 @@ def execute account_books = AccountBook.where(address_id:).order("ckb_transaction_id desc").select(:ckb_transaction_id).distinct.limit(5000) records = CkbTransaction.where(tx_status: :committed, id: account_books.map(&:ckb_transaction_id)).order(transactions_ordering).page(page).per(page_size) options = paginate_options(records, address_id) - options.merge!(params: { previews: false, address: }) + options.merge!(params: { previews: true, address: }) result = CkbTransactionsSerializer.new(records, options) wrap_result(result, address)