mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Fix unique constraint errors on sync
This commit is contained in:
@@ -7,6 +7,7 @@ class Account::Syncer
|
||||
def run
|
||||
holdings = sync_holdings
|
||||
balances = sync_balances(holdings)
|
||||
account.reload
|
||||
update_account_info(balances, holdings) unless account.plaid_account_id.present?
|
||||
convert_foreign_records(balances)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user