From 266213d005bd5c80914ca79599d8d13bdd62d93c Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Tue, 17 Dec 2024 12:49:56 +0000 Subject: [PATCH] Fix strict loading in seeds --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 161cd6d9e..dd4b36e62 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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(