tango-app-api-client 3.1.2 → 3.1.4

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-client",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,8 +25,8 @@
25
25
  "mongodb": "^6.3.0",
26
26
  "nodemon": "^3.0.3",
27
27
  "swagger-ui-express": "^5.0.0",
28
- "tango-api-schema": "^2.0.90",
29
- "tango-app-api-middleware": "^3.1.3",
28
+ "tango-api-schema": "^2.0.91",
29
+ "tango-app-api-middleware": "^3.1.4",
30
30
  "winston": "^3.11.0",
31
31
  "winston-daily-rotate-file": "^5.0.0"
32
32
  },
@@ -1258,7 +1258,7 @@ export async function detailedClientCount( req, res ) {
1258
1258
  role: req?.user?.role,
1259
1259
  };
1260
1260
  result['totalStoreCount'] = await countDocumentsStore( { clientId: inputData.clientId } );
1261
- result['totalGroupCount'] = await countDocumentsGroup( { clientId: inputData.clientId } );
1261
+ result['totalGroupCount'] = await countDocumentsGroup( { clientId: inputData.clientId, isActive: true } );
1262
1262
  result['totalCameraCount'] = await countDocumentsCamera( { clientId: inputData.clientId } );
1263
1263
  result['totalUserCount'] = await countDocumentsUser( { clientId: inputData.clientId, userType: 'client' } );
1264
1264
 
@@ -1269,6 +1269,8 @@ export async function detailedClientCount( req, res ) {
1269
1269
 
1270
1270
  if ( isLogoExist ) {
1271
1271
  const signedFilUrl = await signedUrl( { Bucket: appConfig.cloud.aws.bucket.assets, file_path: `${client.clientId}/logo/${client.profileDetails?.logo}` } );
1272
+ logger.info( { signedFilUrl: signedFilUrl, data: 'signedFilUrl' } );
1273
+
1272
1274
  result['logo'] = signedFilUrl;
1273
1275
  } else {
1274
1276
  result['logo'] = '';