diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-05 03:28:21 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-05 03:28:21 +0100 |
commit | 6c28886317bdf837e7e3f399115af91ac282735e (patch) | |
tree | 243f57e7e712108fbd10d45247e877240b4d6b33 /app/workers/unfavourite_worker.rb | |
parent | 251b04298e826818ecb48c2fdf96a83649e14e93 (diff) |
Improve background jobs params and error handling
Diffstat (limited to 'app/workers/unfavourite_worker.rb')
-rw-r--r-- | app/workers/unfavourite_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/unfavourite_worker.rb b/app/workers/unfavourite_worker.rb index a14c82d6f..cce07e486 100644 --- a/app/workers/unfavourite_worker.rb +++ b/app/workers/unfavourite_worker.rb @@ -5,5 +5,7 @@ class UnfavouriteWorker def perform(account_id, status_id) UnfavouriteService.new.call(Account.find(account_id), Status.find(status_id)) + rescue ActiveRecord::RecordNotFound + true end end |