Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
feat(filtre): caractérise les types de titres selon exploration ou ex…
Browse files Browse the repository at this point in the history
…ploitation (#9)
  • Loading branch information
NeoBahamut authored Mar 24, 2020
1 parent 54adfd2 commit b2255e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/api/queries/titres.gql
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fragment titre on Titre {
id
type {
nom
exploitation
}
}
domaine {
Expand Down
1 change: 1 addition & 0 deletions lib/utils/geojson-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const titreFormat = ({
id: id,
nom: nom,
type: type.type.nom,
nature: type.type.exploitation ? 'exploitation' : 'exploration',
domaine: domaine.nom,
statut: statut.nom,
surface: surface && `${surface} km²`,
Expand Down

0 comments on commit b2255e4

Please sign in to comment.