1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Fix unique constraint errors on sync

This commit is contained in:
Zach Gollwitzer 2024-12-10 18:16:53 -05:00
parent 49c353e10c
commit 46131fb496
2 changed files with 2 additions and 6 deletions

View file

@ -25,11 +25,6 @@ class Investment < ApplicationRecord
end
def post_sync
broadcast_replace_to(
account,
target: "chart_account_#{account.id}",
partial: account.plaid_account_id.present? ? "investments/chart" : "accounts/show/chart",
locals: { account: account }
)
broadcast_refresh_to account.family
end
end