2019-07-02 08:10:25 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class BootstrapTimelineWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
def perform(account_id)
|
2021-02-18 20:02:16 +00:00
|
|
|
ActiveRecord::Base.connected_to(role: :writing) do
|
|
|
|
BootstrapTimelineService.new.call(Account.find(account_id))
|
|
|
|
end
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
end
|