about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-19 10:55:09 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-19 16:55:09 +0200
commitd2e0edd721e202a0b32485e74b4dbf95148d171e (patch)
tree1c92e03468ef421715dd022c1f8336113ef1b00a /app
parent3002a8941944a3913ee95d865894917570451c69 (diff)
Add spec coverage for regeneration worker (#3143)
Diffstat (limited to 'app')
-rw-r--r--app/workers/regeneration_worker.rb3
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