tango-app-api-client 3.0.9-dev → 3.0.10-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.
|
|
3
|
+
"version": "3.0.10-dev",
|
|
4
4
|
"description": "client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"mongodb": "^6.3.0",
|
|
25
25
|
"nodemon": "^3.0.3",
|
|
26
|
-
"tango-api-schema": "^2.0.
|
|
27
|
-
"tango-app-api-middleware": "^1.0.
|
|
26
|
+
"tango-api-schema": "^2.0.53",
|
|
27
|
+
"tango-app-api-middleware": "^1.0.39-dev",
|
|
28
28
|
"winston": "^3.11.0",
|
|
29
29
|
"winston-daily-rotate-file": "^5.0.0"
|
|
30
30
|
},
|
|
@@ -755,8 +755,8 @@ export async function clientList( req, res ) {
|
|
|
755
755
|
}
|
|
756
756
|
return list;
|
|
757
757
|
} );
|
|
758
|
-
const
|
|
759
|
-
clientList.flat();
|
|
758
|
+
const clientListResult = await Promise.all( promises );
|
|
759
|
+
const clientList= clientListResult.flat();
|
|
760
760
|
const storeQuery = [
|
|
761
761
|
{
|
|
762
762
|
$match: {
|
|
@@ -812,19 +812,19 @@ export async function clientList( req, res ) {
|
|
|
812
812
|
const list = [];
|
|
813
813
|
for ( let i = 0; i < chunk.length; i++ ) {
|
|
814
814
|
list.push( {
|
|
815
|
-
'client Name': chunk[i]
|
|
816
|
-
'client Id': chunk[i]
|
|
817
|
-
'Active Store': chunk[i]
|
|
818
|
-
'Active Camera': chunk[i]
|
|
819
|
-
'Payment Status': chunk[i]
|
|
820
|
-
'Subs Plan': chunk[i]
|
|
821
|
-
'Status': chunk[i]
|
|
815
|
+
'client Name': chunk[i]?.clientName,
|
|
816
|
+
'client Id': chunk[i]?.clientId,
|
|
817
|
+
'Active Store': chunk[i]?.activeStoreCount || 0,
|
|
818
|
+
'Active Camera': chunk[i]?.activeCameraCount && chunk[i]?.activeCameraCount!=undefined? chunk[i]?.activeCameraCount: 0,
|
|
819
|
+
'Payment Status': chunk[i]?.paymentStatus,
|
|
820
|
+
'Subs Plan': chunk[i]?.subscriptionType,
|
|
821
|
+
'Status': chunk[i]?.status,
|
|
822
822
|
} );
|
|
823
823
|
}
|
|
824
824
|
return list;
|
|
825
825
|
} );
|
|
826
|
-
const
|
|
827
|
-
exportResult.flat();
|
|
826
|
+
const temp = await Promise.all( promises );
|
|
827
|
+
const exportResult = temp.flat();
|
|
828
828
|
await download( exportResult, res );
|
|
829
829
|
return;
|
|
830
830
|
}
|