|
|
@ -23,12 +23,15 @@ defmodule ExplorerWeb.PendingTransactionController do |
|
|
|
order_by: [desc: transaction.inserted_at], |
|
|
|
order_by: [desc: transaction.inserted_at], |
|
|
|
where: is_nil(block_transaction.transaction_id) |
|
|
|
where: is_nil(block_transaction.transaction_id) |
|
|
|
|
|
|
|
|
|
|
|
transactions = |
|
|
|
transactions = query |> Repo.paginate(params) |
|
|
|
query |
|
|
|
|
|
|
|
|> Repo.paginate(params) |
|
|
|
|
|
|
|
|> Map.put(:entries, transactions.entries |
|
|
|
|
|
|
|
|> Enum.map(&TransactionForm.build/1)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(conn, "index.html", transactions: transactions) |
|
|
|
render( |
|
|
|
|
|
|
|
conn, |
|
|
|
|
|
|
|
"index.html", |
|
|
|
|
|
|
|
transactions: |
|
|
|
|
|
|
|
transactions |
|
|
|
|
|
|
|
|> Map.put(:entries, transactions.entries |
|
|
|
|
|
|
|
|> Enum.map(&TransactionForm.build/1)) |
|
|
|
|
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|