tango-app-api-audit 3.4.17 → 3.4.18
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-audit",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.18",
|
|
4
4
|
"description": "audit & audit metrics apis",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"mongodb": "^6.7.0",
|
|
25
25
|
"nodemon": "^3.1.3",
|
|
26
26
|
"swagger-ui-express": "^5.0.1",
|
|
27
|
-
"tango-api-schema": "^2.1.
|
|
27
|
+
"tango-api-schema": "^2.1.53",
|
|
28
28
|
"tango-app-api-middleware": "^3.1.33",
|
|
29
29
|
"winston": "^3.13.0",
|
|
30
30
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -1721,9 +1721,8 @@ export async function userAuditHistory( req, res ) {
|
|
|
1721
1721
|
return exportData;
|
|
1722
1722
|
} );
|
|
1723
1723
|
const mappedArrays = await Promise.all( promises );
|
|
1724
|
-
mappedArrays.flat();
|
|
1725
|
-
|
|
1726
|
-
await download( mappedArrays[0], res );
|
|
1724
|
+
const result = mappedArrays.flat();
|
|
1725
|
+
await download( result, res );
|
|
1727
1726
|
return;
|
|
1728
1727
|
} else {
|
|
1729
1728
|
query.push( {
|
|
@@ -1905,9 +1905,8 @@ export async function userAuditHistory( req, res ) {
|
|
|
1905
1905
|
return exportData;
|
|
1906
1906
|
} );
|
|
1907
1907
|
const mappedArrays = await Promise.all( promises );
|
|
1908
|
-
mappedArrays.flat();
|
|
1909
|
-
|
|
1910
|
-
await download( mappedArrays[0], res );
|
|
1908
|
+
const response = mappedArrays.flat();
|
|
1909
|
+
await download( response, res );
|
|
1911
1910
|
return;
|
|
1912
1911
|
} else {
|
|
1913
1912
|
query.push( {
|