tango-app-api-audit 3.5.28 → 3.5.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audit",
3
- "version": "3.5.28",
3
+ "version": "3.5.29",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1175,7 +1175,7 @@ export async function summaryList( req, res ) {
1175
1175
  {
1176
1176
  $group: {
1177
1177
  _id: '$Teamlead.email',
1178
- clusterName: { $first: '$clusterName' },
1178
+ clusterName: { $addToSet: '$clusterName' },
1179
1179
  RMName: { $first: '$Teamlead.email' },
1180
1180
  store: { $addToSet: '$stores.storeId' },
1181
1181
 
@@ -1183,7 +1183,7 @@ export async function summaryList( req, res ) {
1183
1183
  },
1184
1184
  { $project: {
1185
1185
  RMName: 1,
1186
- clusterName: 1,
1186
+ clusterCount: { $size: '$clusterName' },
1187
1187
  storesCount: { $size: '$store' },
1188
1188
  store: 1,
1189
1189
  } },