Skip to content

Commit 992f985

Browse files
Fix with_discarded bug in Imms API search job
This was causing the job to create new discarded records every time the search ran, instead of updating the existing discarded records. Jira-Issue: MAV-5903
1 parent 585302c commit 992f985

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/jobs/search_vaccination_records_in_nhs_job.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def existing_vaccination_records
104104
@existing_vaccination_records ||=
105105
patient
106106
.vaccination_records
107+
.with_discarded
107108
.includes(:identity_check)
108109
.sourced_from_nhs_immunisations_api
109110
.for_programmes(programmes)

0 commit comments

Comments
 (0)