12 lines
253 B
Ruby
12 lines
253 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BootstrapTimelineWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(account_id)
|
|
ActiveRecord::Base.connected_to(role: :writing) do
|
|
BootstrapTimelineService.new.call(Account.find(account_id))
|
|
end
|
|
end
|
|
end
|