diff --git a/lib/models/ban.cjs b/lib/models/ban.cjs index cf656a0d..eb8f0a15 100644 --- a/lib/models/ban.cjs +++ b/lib/models/ban.cjs @@ -71,14 +71,14 @@ async function getStatsOfAddresses(cog) { $group: { _id: null, nbNumeroWithBanId: {$sum: 1}, - distinctCodeCommune: {$addToSet: '$codeCommune'} + nbCommuneWithBanId: {$addToSet: '$codeCommune'} } }, { $project: { _id: 0, nbNumeroWithBanId: '$nbNumeroWithBanId', - countDistinctCodeCommune: {$size: '$distinctCodeCommune'} + nbCommuneWithBanId: {$size: '$nbCommuneWithBanId'} } }, ]