about summary refs log tree commit diff
path: root/app/workers/hub_ping_worker.rb
blob: 57d716c97faed9d60f1fdbb3c20aaff91036e0a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
class HubPingWorker
  include Sidekiq::Worker
  include RoutingHelper

  def perform(account_id)
    account = Account.find(account_id)
    account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url])
  end
end