From c8c66b55258c91f156745b774ccd6a616a2a69e6 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Fri, 30 Apr 2021 17:22:48 +0300 Subject: [PATCH] Fix balances indexing error: ON CONFLICT DO UPDATE command cannot affect row a second time (cherry picked from commit 7af2be774b7d9b41260174121b11acf293050b52) --- apps/indexer/lib/indexer/fetcher/token_balance.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/indexer/lib/indexer/fetcher/token_balance.ex b/apps/indexer/lib/indexer/fetcher/token_balance.ex index 473b52a6d9..3bd57d482a 100644 --- a/apps/indexer/lib/indexer/fetcher/token_balance.ex +++ b/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(