Skip to content

Commit c1aeb92

Browse files
committed
Fix model office data generation
1 parent d333f61 commit c1aeb92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/generate_model_office_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def create_students_and_vaccinations_for(
293293
# HPV cohort. If they don't fit into any of the cohorts, then Mavis will
294294
# raise an error and won't import them.
295295

296-
organisation = User.find_by(email: "nurse.ryg@example.com").organisation
296+
organisation = User.find_by(email: "nurse.ryg@example.com").organisations.first
297297

298298
school_data = CSV.read("scratchpad/school-class-sizes.csv", headers: true)
299299

0 commit comments

Comments
 (0)