Skip to content

Commit

Permalink
Fix strict loading in seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleese committed Dec 17, 2024
1 parent 65fa060 commit 266213d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def create_patients(organisation)
end

def create_imports(user, organisation)
programme = organisation.programmes.find_by(type: "hpv")
programme = organisation.programmes.includes(:sessions).find_by(type: "hpv")

%i[pending invalid processed].each do |status|
FactoryBot.create(
Expand Down

0 comments on commit 266213d

Please sign in to comment.