Fix balances indexing error: ON CONFLICT DO UPDATE command cannot affect row a second time

(cherry picked from commit 7af2be774b)
pull/4761/head
Viktor Baranov 4 years ago
parent e75d3b7471
commit c8c66b5525
  1. 3
      apps/indexer/lib/indexer/fetcher/token_balance.ex

@ -152,8 +152,7 @@ defmodule Indexer.Fetcher.TokenBalance do
_ -> token_id
end
{address_hash.bytes, token_contract_address_hash.bytes, block_number, token_type,
token_id_int, retries_count}
{address_hash.bytes, token_contract_address_hash.bytes, block_number, token_type, token_id_int, retries_count}
end
defp format_params(

Loading…
Cancel
Save