Skip to content

Commit

Permalink
fix(payments): balances conflict do nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Feb 21, 2024
1 parent ea473b5 commit f99212a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (s *Storage) InsertBalances(ctx context.Context, balances []*models.Balance
) data`)
}

query = query.On("CONFLICT (account_id, created_at, currency) DO NOTHING")

_, err := query.Exec(ctx)
if err != nil {
return e("failed to create balances", err)
Expand Down

0 comments on commit f99212a

Please sign in to comment.