mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 06:55:21 +02:00
Handle ITEM_NOT_FOUND errors on Plaid deletions
This commit is contained in:
parent
d21e385962
commit
854a21993a
2 changed files with 11 additions and 0 deletions
|
@ -3,5 +3,7 @@ class DestroyJob < ApplicationJob
|
|||
|
||||
def perform(model)
|
||||
model.destroy
|
||||
rescue => e
|
||||
model.update!(scheduled_for_deletion: false) # Let's the user try again by resetting the state
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue