Skip to content

Commit

Permalink
Modified key name for number of district with ban id
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Jun 18, 2024
1 parent 4a0919b commit ce169f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/ban.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
}
},
]
Expand Down

0 comments on commit ce169f2

Please sign in to comment.