Add spec coverage for regeneration worker (#3143)
This commit is contained in:
committed by
Eugen Rochko
parent
3002a89419
commit
d2e0edd721
@ -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
|
||||
|
Reference in New Issue
Block a user