File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,11 +306,12 @@ def call
306306 end
307307
308308 correct_feature_flags_enabled =
309- Programme . all . any? { Flipper . enabled? ( :imms_api_sync_job , it ) } &&
310- Flipper . enabled? ( :imms_api_integration )
309+ Programme . all_as_variants . any? do
310+ Flipper . enabled? ( :imms_api_sync_job , it )
311+ end && Flipper . enabled? ( :imms_api_integration )
311312 if @vaccination_record . respond_to? ( :sync_status ) &&
312313 correct_feature_flags_enabled &&
313- @vaccination_record & .correct_source_for_nhs_immunisations_api?
314+ @vaccination_record . correct_source_for_nhs_immunisations_api?
314315 summary_list . with_row do |row |
315316 row . with_key { "Synced with NHS England?" }
316317 row . with_value do
@@ -339,9 +340,11 @@ def source_value
339340 end
340341
341342 def outcome_value
342- outcome = VaccinationRecord . human_enum_name ( :outcome , @vaccination_record . outcome )
343+ outcome =
344+ VaccinationRecord . human_enum_name ( :outcome , @vaccination_record . outcome )
343345
344- if @vaccination_record . already_had? && @vaccination_record . reported_as_already_vaccinated?
346+ if @vaccination_record . already_had? &&
347+ @vaccination_record . reported_as_already_vaccinated?
345348 outcome = VaccinationRecord . human_enum_name ( :outcome , "administered" )
346349 end
347350
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ module SyncableToNHSImmunisationsAPI
1818 scope :sync_all_to_nhs_immunisations_api ,
1919 -> do
2020 programmes =
21- Programme . all . select { Flipper . enabled? ( :imms_api_sync_job , it ) }
21+ Programme . all_as_variants . select do
22+ Flipper . enabled? ( :imms_api_sync_job , it )
23+ end
2224
2325 ids =
2426 with_correct_source_for_nhs_immunisations_api . for_programmes (
You can’t perform that action at this time.
0 commit comments