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

class RemoteProfileUpdateWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'pull'

  def perform(account_id, body, resubscribe)
    UpdateRemoteProfileService.new.call(body, Account.find(account_id), resubscribe)
  rescue ActiveRecord::RecordNotFound
    true
  end
end