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