Skip to content

Commit

Permalink
Merge pull request #425 from BaseAdresseNationale/antoineludeau/add-p…
Browse files Browse the repository at this point in the history
…rojection-fields-for-lieu-dit-lookup

Added projection fields to lieu-dit lookup
  • Loading branch information
antoineludeau authored Jul 16, 2024
2 parents 013cf56 + 6c152c6 commit 25f4f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/commune.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async function getPopulatedCommune(codeCommune) {
}

async function getPopulatedVoie(idVoie) {
const voieFields = ['type', 'idVoie', 'banId', 'nomVoie', 'nomVoieAlt', 'sourceNomVoie', 'sources', 'codeCommune', 'nbNumeros', 'nbNumerosCertifies', 'displayBBox', 'dateMAJ']
const voieFields = ['type', 'idVoie', 'banId', 'nomVoie', 'nomVoieAlt', 'sourceNomVoie', 'sources', 'source', 'codeCommune', 'nbNumeros', 'nbNumerosCertifies', 'displayBBox', 'dateMAJ', 'position', 'parcelles']

const voie = await mongo.db.collection('voies')
.findOne({idVoie}, {projection: fieldsToProj(voieFields)})
Expand Down

0 comments on commit 25f4f55

Please sign in to comment.