publish opendata demarches only if they are publiees or closes
This commit is contained in:
parent
d0e05784e9
commit
38fa7a44c3
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