tango-app-api-client 3.0.25-dev → 3.0.26-dev

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.0.25-dev",
3
+ "version": "3.0.26-dev",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -251,9 +251,9 @@ export async function detailedAllClientCount( req, res ) {
251
251
  {
252
252
  $project: {
253
253
  activeClient: { $cond: [ { $eq: [ '$status', 'active' ] }, 1, 0 ] },
254
- paidClient: { $cond: [ { $eq: [ '$status', 'paid' ] }, 1, 0 ] },
255
- trialClient: { $cond: [ { $eq: [ '$status', 'trial' ] }, 1, 0 ] },
256
- freeClient: { $cond: [ { $eq: [ '$status', 'free' ] }, 1, 0 ] },
254
+ paidClient: { $cond: [ { $in: [ '$planDetails.paymentStatus', [ 'paid', 'unbilled', 'due' ] ] }, 1, 0 ] },
255
+ trialClient: { $cond: [ { $eq: [ '$planDetails.paymentStatus', 'trial' ] }, 1, 0 ] },
256
+ freeClient: { $cond: [ { $eq: [ '$planDetails.paymentStatus', 'free' ] }, 1, 0 ] },
257
257
  holdClient: { $cond: [ { $eq: [ '$status', 'hold' ] }, 1, 0 ] },
258
258
  suspendClient: { $cond: [ { $eq: [ '$status', 'suspend' ] }, 1, 0 ] },
259
259
  deactiveClient: { $cond: [ { $eq: [ '$status', 'deactive' ] }, 1, 0 ] },