mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Fix sync error when security missing
This commit is contained in:
parent
c3248cd796
commit
d592495be5
3 changed files with 10 additions and 6 deletions
|
@ -29,6 +29,7 @@ class Sync < ApplicationRecord
|
|||
end
|
||||
|
||||
def fail!(error)
|
||||
Sentry.capture_exception(error)
|
||||
update! status: :failed, error: error.message, last_ran_at: Time.current
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue