about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-19 10:21:52 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-19 16:21:52 +0200
commitdb4119f9711e6c2ac640325640f6e61b1e177ed3 (patch)
treecf7a19fe42370e81b99de7e7ac8ac01f260c8243 /app/workers
parent4a3db716921b2e290011b1bc33d0f19e2e8f2d55 (diff)
Specs for precompute feed service (#3142)
* Add spec for precompute feed service

* Refactor PrecomputeFeedService

* spec wip
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/regeneration_worker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/regeneration_worker.rb b/app/workers/regeneration_worker.rb
index da8b845f6..0cc6b668c 100644
--- a/app/workers/regeneration_worker.rb
+++ b/app/workers/regeneration_worker.rb
@@ -6,6 +6,8 @@ class RegenerationWorker
   sidekiq_options queue: 'pull', backtrace: true, unique: :until_executed
 
   def perform(account_id, _ = :home)
-    PrecomputeFeedService.new.call(:home, Account.find(account_id))
+    account = Account.find(account_id)
+
+    PrecomputeFeedService.new.call(account)
   end
 end