Skip to content

Commit 775c80e

Browse files
refactor: use STATUSES_FOR_RECORDING_VACCINATION also elsewhere
1 parent 595558a commit 775c80e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/app_session_actions_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def ready_for_vaccinator_row
8888
counts_by_programme =
8989
session.programmes.index_with do |programme|
9090
patient_sessions
91-
.has_registration_status(%w[attending completed])
91+
.has_registration_status(
92+
PatientSession::RegistrationStatus::STATUSES_FOR_RECORDING_VACCINATION
93+
)
9294
.includes(
9395
patient: %i[consent_statuses triage_statuses vaccination_statuses]
9496
)

0 commit comments

Comments
 (0)