Skip to content

Commit

Permalink
Use user.first_email
Browse files Browse the repository at this point in the history
  • Loading branch information
matthinz committed Aug 28, 2024
1 parent 4ebb7cd commit fd4dcab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/jobs/resolution_proofing_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def perform(
document_capture_session_result_id: document_capture_session.result_id,
encrypted_arguments:,
service_provider_issuer:,
user_email: user_email_for_proofing(user),
user_email: user.first_email,
user_uuid: user.uuid,
)
end
Expand All @@ -99,7 +99,7 @@ def make_vendor_proofing_requests(
)
result = progressive_proofer.proof(
applicant_pii: applicant_pii,
user_email: user_email_for_proofing(user),
user_email: user.first_email,
threatmetrix_session_id: threatmetrix_session_id,
request_ip: request_ip,
ipp_enrollment_in_progress: ipp_enrollment_in_progress,
Expand All @@ -119,10 +119,6 @@ def make_vendor_proofing_requests(
)
end

def user_email_for_proofing(user)
user.confirmed_email_addresses.first.email
end

def log_threatmetrix_info(threatmetrix_result, user)
logger_info_hash(
name: 'ThreatMetrix',
Expand Down

0 comments on commit fd4dcab

Please sign in to comment.