Skip to content

Commit

Permalink
Rescue and note disenrollment errors (#4994)
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders authored Dec 16, 2024
1 parent a62bec8 commit adc5c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/jobs/health/process_enrollment_changes_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def perform(enrollment_id)
disenroll_patient(transaction, referral, file_date)
disenrolled_patients += 1
end
rescue Health::MedicaidIdConflict
errors << conflict_message(transaction)
end

enrollment.changes.each do |transaction|
Expand Down Expand Up @@ -139,7 +141,6 @@ def perform(enrollment_id)
update_patient_referrals(referral.patient, transaction)
updated_patients += 1
end

rescue Health::MedicaidIdConflict
# The conflict prevents us from knowing the audit action
errors << conflict_message(transaction)
Expand Down

0 comments on commit adc5c50

Please sign in to comment.