diff options
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 |