Merge pull request #8687 from demarches-simplifiees/publish-opendata-for-publiees-or-closes-procs

publish opendata demarches only if they are publiees or closes
This commit is contained in:
Paul Chavard 2023-02-23 15:16:45 +00:00 committed by GitHub
commit d943e34b6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ module Types
field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, internal: true field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, internal: true
def demarches_publiques 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 end
def demarche_descriptor(demarche:) def demarche_descriptor(demarche:)