diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-19 10:55:09 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-19 16:55:09 +0200 |
commit | d2e0edd721e202a0b32485e74b4dbf95148d171e (patch) | |
tree | 1c92e03468ef421715dd022c1f8336113ef1b00a /app/workers | |
parent | 3002a8941944a3913ee95d865894917570451c69 (diff) |
Add spec coverage for regeneration worker (#3143)
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/regeneration_worker.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/regeneration_worker.rb b/app/workers/regeneration_worker.rb index 0cc6b668c..8cee21ae1 100644 --- a/app/workers/regeneration_worker.rb +++ b/app/workers/regeneration_worker.rb @@ -7,7 +7,8 @@ class RegenerationWorker def perform(account_id, _ = :home) account = Account.find(account_id) - PrecomputeFeedService.new.call(account) + rescue ActiveRecord::RecordNotFound + true end end |