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:
commit
d943e34b6d
1 changed files with 1 additions and 1 deletions
|
@ -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:)
|
||||
|
|
Loading…
Reference in a new issue