Add spec coverage for regeneration worker (#3143)
This commit is contained in:
parent
3002a89419
commit
d2e0edd721
2 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue