change condition

pull/2459/head
Ayrat Badykov 5 years ago
parent d23b91049a
commit 397b452a14
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/explorer/lib/explorer/chain.ex

@ -2603,7 +2603,7 @@ defmodule Explorer.Chain do
defp page_addresses(query, %PagingOptions{key: {coin_balance, hash}}) do defp page_addresses(query, %PagingOptions{key: {coin_balance, hash}}) do
from(address in query, from(address in query,
where: where:
(address.fetched_coin_balance <= ^coin_balance and address.hash > ^hash) or (address.fetched_coin_balance == ^coin_balance and address.hash > ^hash) or
address.fetched_coin_balance < ^coin_balance address.fetched_coin_balance < ^coin_balance
) )
end end

Loading…
Cancel
Save