mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Require upstream item removal to delete plaid item
This commit is contained in:
@@ -108,11 +108,8 @@ class PlaidItem < ApplicationRecord
|
||||
end
|
||||
|
||||
private
|
||||
# Silently swallow and report error so that we don't block the user from deleting the item
|
||||
def remove_plaid_item
|
||||
plaid_provider.remove_item(access_token)
|
||||
rescue StandardError => e
|
||||
Sentry.capture_exception(e)
|
||||
end
|
||||
|
||||
# Plaid returns mutually exclusive arrays here. If the item has made a request for a product,
|
||||
|
||||
Reference in New Issue
Block a user