tango-app-api-audit 3.5.14 → 3.5.15
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
|
@@ -276,26 +276,26 @@ export async function getAuditFile( req, res ) {
|
|
|
276
276
|
logger.info( 'Hit in user assign', { inputData } );
|
|
277
277
|
userAssign[0].auditType == 'Audit' ?
|
|
278
278
|
( msg = {
|
|
279
|
-
store_id: userAssign[0]
|
|
280
|
-
curr_date: userAssign[0]
|
|
281
|
-
total_count: userAssign[0]
|
|
282
|
-
zone_id: userAssign[0]
|
|
283
|
-
index_name: auditInsertData[0]?.sqs?.index_name,
|
|
279
|
+
store_id: userAssign?.[0]?.storeId,
|
|
280
|
+
curr_date: userAssign?.[0]?.fileDate,
|
|
281
|
+
total_count: userAssign?.[0]?.fileCount,
|
|
282
|
+
zone_id: userAssign?.[0]?.zoneName,
|
|
283
|
+
index_name: auditInsertData?.[0]?.sqs?.index_name,
|
|
284
284
|
} ) :
|
|
285
285
|
( msg = {
|
|
286
|
-
store_id: userAssign[0]
|
|
287
|
-
curr_date: userAssign[0]
|
|
288
|
-
audit_type: userAssign[0]
|
|
289
|
-
total_count: userAssign[0]
|
|
290
|
-
zone_id: userAssign[0]
|
|
291
|
-
index_name: auditInsertData[0]?.sqs?.index_name,
|
|
286
|
+
store_id: userAssign?.[0]?.storeId,
|
|
287
|
+
curr_date: userAssign?.[0]?.fileDate,
|
|
288
|
+
audit_type: userAssign?.[0]?.auditType,
|
|
289
|
+
total_count: userAssign?.[0]?.fileCount,
|
|
290
|
+
zone_id: userAssign?.[0]?.zoneName,
|
|
291
|
+
index_name: auditInsertData?.[0]?.sqs?.index_name,
|
|
292
292
|
} );
|
|
293
293
|
await updateOneAssignAudit(
|
|
294
|
-
{ _id: userAssign[0]
|
|
294
|
+
{ _id: userAssign?.[0]?._id },
|
|
295
295
|
{ isCompleted: true },
|
|
296
296
|
);
|
|
297
297
|
logger.info( 'Hit in auditUserAssignModel updateOne', {
|
|
298
|
-
_id: userAssign[0]
|
|
298
|
+
_id: userAssign?.[0]?._id,
|
|
299
299
|
isCompleted: true,
|
|
300
300
|
} );
|
|
301
301
|
} else {
|