diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb index a070ec088..ff36e4f85 100644 --- a/app/graphql/types/query_type.rb +++ b/app/graphql/types/query_type.rb @@ -19,7 +19,7 @@ module Types field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, internal: true def demarches_publiques - Procedure.opendata.includes(draft_revision: :procedure, published_revision: :procedure) + Procedure.publiees_ou_closes.opendata.includes(draft_revision: :procedure, published_revision: :procedure) end def demarche_descriptor(demarche:)