0
0
Fork 0

Only call regeneration worker after first login after a 14 day break

This commit is contained in:
Eugen Rochko 2017-04-04 02:00:10 +02:00
parent 4c53af64f0
commit b510a56c0c
4 changed files with 19 additions and 13 deletions

View file

@ -5,7 +5,7 @@ class RegenerationWorker
sidekiq_options queue: 'pull', backtrace: true
def perform(account_id, timeline_type)
PrecomputeFeedService.new.call(timeline_type, Account.find(account_id))
def perform(account_id, _ = :home)
PrecomputeFeedService.new.call(:home, Account.find(account_id))
end
end