Skip to content

Commit

Permalink
Fix regression in codes postaux
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasG77 committed Aug 31, 2022
1 parent 108f8a8 commit 9c52e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function buildCommunes(regions, departements, arrondissements, population)
commune.siren = String(inseeSirenMatching[commune.code].siren)
}

const codesPostaux = getCodesPostaux()
const codesPostaux = getCodesPostaux(commune.code)
if (codesPostaux.length > 0) {
commune.codesPostaux = codesPostaux
} else if (shouldWarnCodePostal(commune.code)) {
Expand Down

0 comments on commit 9c52e6f

Please sign in to comment.