Skip to content

Commit

Permalink
Fix vaccination record factory creating locations
Browse files Browse the repository at this point in the history
This fixes an issue where creating vaccination records would end up
creating new sessions to access the team, rather than using the patient
session already available to us.
  • Loading branch information
thomasleese committed Oct 16, 2024
1 parent 48a71a0 commit b2819e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/factories/vaccination_records.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
delivery_site { "left_arm_upper_position" }
delivery_method { "intramuscular" }
vaccine { programme.vaccines.active.first }
batch { association :batch, team: session.team, vaccine: }
batch { association :batch, team: patient_session.team, vaccine: }

performed_by

Expand Down

0 comments on commit b2819e9

Please sign in to comment.