gab-social/app/workers/bootstrap_timeline_worker.rb
2021-02-18 15:02:16 -05:00

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