gab-social/app/workers/bootstrap_timeline_worker.rb

12 lines
253 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
# 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
2019-07-02 08:10:25 +01:00
end
end