Method: MHV::AccountCreatorJob#perform

Defined in:
app/sidekiq/mhv/account_creator_job.rb

#perform(user_verification_id) ⇒ Object



11
12
13
14
15
16
# File 'app/sidekiq/mhv/account_creator_job.rb', line 11

def perform(user_verification_id)
  user_verification = UserVerification.find(user_verification_id)
  MHV::UserAccount::Creator.new(user_verification:, break_cache: true).perform
rescue ActiveRecord::RecordNotFound
  Rails.logger.error("MHV AccountCreatorJob failed: UserVerification not found for id #{user_verification_id}")
end