tango-app-api-audit 3.4.16 → 3.4.17
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
|
@@ -4584,9 +4584,9 @@ export async function save( req, res ) {
|
|
|
4584
4584
|
clientName: getClient?.clientName,
|
|
4585
4585
|
storeId: inputData.storeId,
|
|
4586
4586
|
storeName: getStore?.storeName,
|
|
4587
|
-
spocName: getStore?.spocDetails[0]?.name,
|
|
4588
|
-
spocEmail: getStore?.spocDetails[0]?.email,
|
|
4589
|
-
spocContact: getStore?.spocDetails[0].contact,
|
|
4587
|
+
spocName: getStore?.spocDetails? getStore?.spocDetails[0]?.name : '',
|
|
4588
|
+
spocEmail: getStore?.spocDetails? getStore?.spocDetails[0]?.email:'',
|
|
4589
|
+
spocContact: getStore?.spocDetails? getStore?.spocDetails[0].contact:'',
|
|
4590
4590
|
address: getStore?.storeProfile?.address,
|
|
4591
4591
|
fileDate: inputData.fileDate,
|
|
4592
4592
|
moduleType: inputData.moduleType,
|
|
@@ -4627,7 +4627,7 @@ export async function save( req, res ) {
|
|
|
4627
4627
|
const err = error.message || 'Internal Server Error';
|
|
4628
4628
|
logger.error( {
|
|
4629
4629
|
error: error,
|
|
4630
|
-
message: req.
|
|
4630
|
+
message: req.body,
|
|
4631
4631
|
function: 'saveTrax',
|
|
4632
4632
|
} );
|
|
4633
4633
|
return res.sendError( err, 500 );
|
|
@@ -11,7 +11,7 @@ export async function validateUserEmpDetection( req, res, next ) {
|
|
|
11
11
|
_id: inputData.auditId,
|
|
12
12
|
} );
|
|
13
13
|
if ( !userAuditDetails ) {
|
|
14
|
-
return res.sendError( 'No Data Available' );
|
|
14
|
+
return res.sendError( 'No Data Available', 204 );
|
|
15
15
|
} else if ( userAuditDetails && userAuditDetails.auditStatus == 'skipped' ) {
|
|
16
16
|
return res.sendError( 'The Audit file Assigned to some one else', 203 );
|
|
17
17
|
}
|
|
@@ -21,7 +21,7 @@ export async function validateUserEmpDetection( req, res, next ) {
|
|
|
21
21
|
const err = error.message || 'Internal Server Error';
|
|
22
22
|
logger.error( {
|
|
23
23
|
error: error,
|
|
24
|
-
message: req.
|
|
24
|
+
message: req.body,
|
|
25
25
|
function: 'validateUserEmpDetection',
|
|
26
26
|
} );
|
|
27
27
|
return res.sendError( err, 500 );
|