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