about summary refs log tree commit diff
path: root/app/workers/hub_ping_worker.rb
blob: d9a9ff4277b9c3a27dc50fe2e24611660735de72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

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