From 47e232f439aaec2522bb01ca8d88b0aaed0a7c4a Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 4 Mar 2021 16:18:12 +0100 Subject: [PATCH] Some associations have no date_creation --- app/graphql/schema.graphql | 2 +- app/graphql/types/personne_morale_type.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index e5c8f8744..76b486bec 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -103,7 +103,7 @@ enum AddressType { } type Association { - dateCreation: ISO8601Date! + dateCreation: ISO8601Date dateDeclaration: ISO8601Date! datePublication: ISO8601Date! objet: String! diff --git a/app/graphql/types/personne_morale_type.rb b/app/graphql/types/personne_morale_type.rb index 0ba408fba..e02293bc2 100644 --- a/app/graphql/types/personne_morale_type.rb +++ b/app/graphql/types/personne_morale_type.rb @@ -75,7 +75,7 @@ module Types field :rna, String, null: false field :titre, String, null: false field :objet, String, null: false - field :date_creation, GraphQL::Types::ISO8601Date, null: false + field :date_creation, GraphQL::Types::ISO8601Date, null: true field :date_declaration, GraphQL::Types::ISO8601Date, null: false field :date_publication, GraphQL::Types::ISO8601Date, null: false end