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