2017-04-05 12:41:50 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class RemoteProfileUpdateWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: 'pull'
|
|
|
|
|
|
|
|
def perform(account_id, body, resubscribe)
|
2017-04-08 04:26:03 -07:00
|
|
|
UpdateRemoteProfileService.new.call(body, Account.find(account_id), resubscribe)
|
2017-04-05 12:41:50 -07:00
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|