tango-app-api-client 3.1.19 → 3.1.20-alpha.0

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.19",
3
+ "version": "3.1.20-alpha.0",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -356,18 +356,18 @@ export async function getClients( req, res ) {
356
356
  $match: {
357
357
  userEmail: req?.user?.email,
358
358
  assignedType: { $eq: 'client' },
359
- $expr: {
360
- $cond: {
361
- if: {
362
- $and: [
363
- { $eq: [ '$userType', 'tango' ] },
364
- { $eq: [ '$tangoUserType', 'csm' ] },
365
- ],
366
- },
367
- then: { $eq: [ '$isClientApproved', true ] },
368
- else: true,
369
- },
370
- },
359
+ // $expr: {
360
+ // $cond: {
361
+ // if: {
362
+ // $and: [
363
+ // { $eq: [ '$userType', 'tango' ] },
364
+ // { $eq: [ '$tangoUserType', 'csm' ] },
365
+ // ],
366
+ // },
367
+ // then: { $eq: [ '$isClientApproved', true ] },
368
+ // else: true,
369
+ // },
370
+ // },
371
371
  },
372
372
  },
373
373
  {
@@ -1186,17 +1186,17 @@ export async function clientList( req, res ) {
1186
1186
  $match: {
1187
1187
  userEmail: { $eq: req?.user?.email },
1188
1188
  userType: 'tango',
1189
- $expr: {
1190
- $cond: {
1191
- if: {
1192
- $and: [
1193
- { $eq: [ '$tangoUserType', 'csm' ] },
1194
- ],
1195
- },
1196
- then: { $eq: [ '$isClientApproved', true ] },
1197
- else: true,
1198
- },
1199
- },
1189
+ // $expr: {
1190
+ // $cond: {
1191
+ // if: {
1192
+ // $and: [
1193
+ // { $eq: [ '$tangoUserType', 'csm' ] },
1194
+ // ],
1195
+ // },
1196
+ // then: { $eq: [ '$isClientApproved', true ] },
1197
+ // else: true,
1198
+ // },
1199
+ // },
1200
1200
 
1201
1201
  },
1202
1202
  }, {
@@ -1512,17 +1512,17 @@ export async function clientListV1( req, res ) {
1512
1512
  $match: {
1513
1513
  userEmail: { $eq: req?.user?.email },
1514
1514
  userType: 'tango',
1515
- $expr: {
1516
- $cond: {
1517
- if: {
1518
- $and: [
1519
- { $eq: [ '$tangoUserType', 'csm' ] },
1520
- ],
1521
- },
1522
- then: { $eq: [ '$isClientApproved', true ] },
1523
- else: true,
1524
- },
1525
- },
1515
+ // $expr: {
1516
+ // $cond: {
1517
+ // if: {
1518
+ // $and: [
1519
+ // { $eq: [ '$tangoUserType', 'csm' ] },
1520
+ // ],
1521
+ // },
1522
+ // then: { $eq: [ '$isClientApproved', true ] },
1523
+ // else: true,
1524
+ // },
1525
+ // },
1526
1526
 
1527
1527
  },
1528
1528
  },
@@ -2048,7 +2048,7 @@ export async function clientCsmAssignAction( req, res ) {
2048
2048
  }
2049
2049
 
2050
2050
  if ( req.body.action === 'decline' ) {
2051
- await deleteOneAssignedStore( { clientId: req.query.clientId, tangoUserType: 'csm', assignedType: 'client' } );
2051
+ // await deleteOneAssignedStore( { clientId: req.query.clientId, tangoUserType: 'csm', assignedType: 'client' } );
2052
2052
  }
2053
2053
 
2054
2054
  res.sendSuccess( 'Updated Succesfully' );