Skip to content

Commit

Permalink
Modified stat key names to identify our new system ID
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Jun 18, 2024
1 parent bf19b85 commit 4a0919b
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 @@ -29,10 +29,10 @@ async function getStatsOfDistricts(cog = []) {
nbAdressesCertifiees: {$sum: '$nbNumerosCertifies'},
nbCommunesCouvertes: {$sum: 1},
populationCouverte: {$sum: '$population'},
nbCommunesAvecBanId: {$sum: {
nbCommunesIdSocle: {$sum: {
$cond: [{$eq: ['$withBanId', true]}, 1, 0]
}},
nbAdressesAvecBanId: {$sum: {
nbAdressesIdSocle: {$sum: {
$cond: [{$eq: ['$withBanId', true]}, '$nbNumeros', 0]
}}
}
Expand Down

0 comments on commit 4a0919b

Please sign in to comment.