publish opendata demarches only if they are publiees or closes

This commit is contained in:
Christophe Robillard 2023-02-23 15:46:54 +01:00
parent d0e05784e9
commit 38fa7a44c3

View file

@ -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:)