tango-app-api-audit 1.0.9 → 1.0.10
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
|
@@ -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.
|
|
733
|
-
'Client Id': element.
|
|
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,
|