Prevent account deletions when account is linked to a Plaid Item #2218

Merged
zachgoll merged 2 commits from zachgoll/fix-plaid-account-sync-transactional-bug into main 2025-05-08 01:56:20 +08:00
zachgoll commented 2025-05-08 00:36:49 +08:00 (Migrated from github.com)

Previously, we allowed users to delete accounts that were "linked" to a Plaid Item.

To ensure valid data states, this PR forces users to delete the PlaidItem all at once, or not at all.

To disable accounts within a Plaid item, the user must toggle the active / inactive switch instead of the deleting the account entirely.

Previously, we allowed users to delete accounts that were "linked" to a Plaid Item. To ensure valid data states, this PR forces users to delete the PlaidItem all at once, or not at all. To disable accounts within a Plaid item, the user must toggle the `active` / `inactive` switch instead of the deleting the account entirely.
Sign in to join this conversation.