Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugurtha Bouhadoun committed Jun 14, 2024
1 parent 10a4685 commit bf19b85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/models/ban.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ async function getFullStats(codesCommune) {
const statsOfNumerosCollection = getStatsOfAddresses(codesCommune)

const [
{ban: banDistrictStat, bal: balDistrictStat, computed: computedDistrictStat},
{ban: banBanIdStat, bal: balBanIdStat, computed: computedBanIdStat},
[{ban: banDistrictStat, bal: balDistrictStat, computed: computedDistrictStat}],
[{ban: banBanIdStat, bal: balBanIdStat, computed: computedBanIdStat}],
] = await Promise.all([statsByCog, statsOfNumerosCollection])

const ban = {
Expand All @@ -135,7 +135,7 @@ async function getFullStats(codesCommune) {

const total = {
population: ban?.populationCouverte || 0,
nbCommunes: ban?.countCommuneCouverte || 0,
nbCommunes: ban?.nbCommunesCouvertes || 0,
}

return {
Expand Down

0 comments on commit bf19b85

Please sign in to comment.