Skip to content

Commit 6691da5

Browse files
authored
add KYC rescued exceptions to NR (#12206)
* add KYC rescued exceptions to NR [skip changelog] * if user exists * fetch user before throwing
1 parent 8451672 commit 6691da5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/jobs/resolution_proofing_job.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ def perform(
2929
)
3030
timer = JobHelpers::Timer.new
3131

32+
user = User.find_by(id: user_id)
33+
3234
raise_stale_job! if stale_job?(enqueued_at)
3335

3436
decrypted_args = JSON.parse(
3537
Encryption::Encryptors::BackgroundProofingArgEncryptor.new.decrypt(encrypted_arguments),
3638
symbolize_names: true,
3739
)
3840

39-
user = User.find_by(id: user_id)
4041
current_sp = ServiceProvider.find_by(issuer: service_provider_issuer)
4142

4243
applicant_pii = decrypted_args[:applicant_pii]
@@ -71,6 +72,7 @@ def perform(
7172
state_id_success: callback_log_data&.state_id_success,
7273
device_profiling_success: callback_log_data&.device_profiling_success,
7374
timing: timer.results,
75+
user_id: user.uuid,
7476
)
7577

7678
if use_shadow_mode?(user:, proofing_components:)

app/services/proofing/socure/id_plus/proofer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def proof(applicant)
4242

4343
build_result_from_response(response)
4444
rescue Proofing::TimeoutError, Request::Error => err
45+
NewRelic::Agent.notice_error(err)
4546
build_result_from_error(err)
4647
end
4748

0 commit comments

Comments
 (0)