tango-app-api-audit 1.0.9 → 1.0.11

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": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "nodemon": "^3.1.3",
25
25
  "swagger-ui-express": "^5.0.1",
26
26
  "tango-api-schema": "^2.0.117",
27
- "tango-app-api-middleware": "^3.1.23",
27
+ "tango-app-api-middleware": "^3.1.24",
28
28
  "winston": "^3.13.0",
29
29
  "winston-daily-rotate-file": "^5.0.0"
30
30
  },
@@ -696,17 +696,17 @@ export async function workSpace( req, res ) {
696
696
  const CompletedCount = await aggregateStoreAudit( completedFiles );
697
697
 
698
698
  const clientAssignresult = await aggregateAssignAudit( clientAssign );
699
-
700
699
  const userAsignCount = await aggregateAssignAudit( userAsign );
701
700
  const mergeAll = _.merge( _.keyBy( clientDetails, 'clientId' ), _.keyBy( auditCount, 'clientId' ), _.keyBy( draftedCount, 'clientId' ), _.keyBy( clientAssignresult, 'clientId' ) );
702
701
  const finalResult = _.values( mergeAll );
703
702
  const merge = _.values( _.merge( _.keyBy( finalResult, 'clientId' ), _.keyBy( auditDetails, 'clientId' ), _.keyBy( userAsignCount, 'clientId' ), _.keyBy( CompletedCount, 'clientId' ) ) );
704
-
703
+ logger.info( { merge: merge } );
705
704
  let totalStores = 0;
706
705
  for ( let i = 0; i < merge.length; i++ ) {
707
706
  totalStores = totalStores + merge[i].totalFilesCount;
708
707
 
709
708
  const pending = await listQueue( merge[i].queueName );
709
+
710
710
  if ( !pending.statusCode ) {
711
711
  temp.push( {
712
712
  clientId: merge[i].clientId,
@@ -729,8 +729,8 @@ export async function workSpace( req, res ) {
729
729
  const exportdata = [];
730
730
  temp.forEach( ( element ) => {
731
731
  exportdata.push( {
732
- 'Client Name': element.client_name,
733
- 'Client Id': element.client_id,
732
+ 'Client Name': element.clientName,
733
+ 'Client Id': element.clientId,
734
734
  'Completed Percentage': element.completedRatio + ' %',
735
735
  'Pending Queue': element.pendingByQueue,
736
736
  'Pending User': element.pendingByUser,