correctif(PersonneMoraleType): il arrive que le code naf d'une entreprise puisse ne pas exister [trop vieux pour etre mappable]

This commit is contained in:
Martin 2022-12-28 15:26:32 +01:00
parent 72791bd5b6
commit aeca2b28e4
2 changed files with 2 additions and 2 deletions

View file

@ -2048,7 +2048,7 @@ type PersonneMorale implements Demandeur {
id: ID!
libelleNaf: String!
localite: String! @deprecated(reason: "Utilisez le champ `address.city_name` à la place.")
naf: String!
naf: String
nomVoie: String @deprecated(reason: "Utilisez le champ `address.street_name` à la place.")
numeroVoie: String @deprecated(reason: "Utilisez le champ `address.street_number` à la place.")
siegeSocial: Boolean!

View file

@ -90,7 +90,7 @@ module Types
field :siret, String, null: false
field :siege_social, Boolean, null: false
field :naf, String, null: false
field :naf, String, null: true # see: https://sentry.io/organizations/demarches-simplifiees/issues/2839832517/activity/?environment=production&project=1429550&query=is%3Aunresolved&referrer=issue-stream#
field :libelle_naf, String, null: false
field :address, Types::AddressType, null: false