Skip to content

Commit

Permalink
fix(server): show duplicate transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed May 25, 2019
1 parent f545e31 commit b52d957
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AddressTransactionsController < ApplicationController

def show
address = Address.find_by!(address_hash: params[:id])
ckb_transactions = address.ckb_transactions.available.recent.page(@page).per(@page_size)
ckb_transactions = address.ckb_transactions.available.recent.distinct.page(@page).per(@page_size)
options = FastJsonapi::PaginationMetaGenerator.new(request: request, records: ckb_transactions, page: @page, page_size: @page_size).call

render json: CkbTransactionSerializer.new(ckb_transactions, options)
Expand Down

0 comments on commit b52d957

Please sign in to comment.