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
|
@@ -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: [ { $
|
|
255
|
-
trialClient: { $cond: [ { $eq: [ '$
|
|
256
|
-
freeClient: { $cond: [ { $eq: [ '$
|
|
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 ] },
|