Skip to content

Commit b976804

Browse files
authored
Merge pull request #6605 from NHSDigital/refactor-programme-status-includes
Remove unnecessary includes in `PatientStatusUpdater`
2 parents 0d81782 + c33f401 commit b976804

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

app/lib/patient_status_updater.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,13 @@ def update_programme_statuses!
4646
batch =
4747
relation.includes(
4848
:attendance_record,
49+
:consent_notifications,
4950
:consents,
51+
:parents,
5052
:patient,
5153
:patient_locations,
5254
:triages,
53-
:vaccination_records,
54-
:parents,
55-
:consent_notifications,
56-
patient_locations: {
57-
location: [
58-
{ team_locations: { sessions: :session_programme_year_groups } }
59-
]
60-
}
55+
:vaccination_records
6156
).to_a
6257

6358
batch.each(&:assign)

0 commit comments

Comments
 (0)