tango-app-api-task 3.6.2-bulktask-5 → 3.6.2-bulktask-7
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-task",
|
|
3
|
-
"version": "3.6.2-bulktask-
|
|
3
|
+
"version": "3.6.2-bulktask-7",
|
|
4
4
|
"description": "Task",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"mongodb": "^6.10.0",
|
|
26
26
|
"nodemon": "^3.1.7",
|
|
27
27
|
"npm": "^10.9.2",
|
|
28
|
-
"tango-api-schema": "^2.2.
|
|
28
|
+
"tango-api-schema": "^2.2.201",
|
|
29
29
|
"tango-app-api-middleware": "^3.1.77",
|
|
30
30
|
"winston": "^3.17.0",
|
|
31
31
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -2190,9 +2190,9 @@ export async function createChecklistMultiTask( req, res ) {
|
|
|
2190
2190
|
let findcomment = {};
|
|
2191
2191
|
if ( !inputBody.showcomment ) {
|
|
2192
2192
|
if ( inputBody?.coverage === 'store' ) {
|
|
2193
|
-
findcomment = inputBody.excelData.find( ( ele ) => ele
|
|
2193
|
+
findcomment = inputBody.excelData.find( ( ele ) => ele['Store Name'] === originaldata.storeName );
|
|
2194
2194
|
} else if ( inputBody?.coverage === 'users' ) {
|
|
2195
|
-
findcomment = inputBody.excelData.find( ( ele ) => ele
|
|
2195
|
+
findcomment = inputBody.excelData.find( ( ele ) => ele['User Email'] === originaldata.userEmail );
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
2198
|
console.log( '****************', findcomment );
|
|
@@ -2256,7 +2256,7 @@ export async function createChecklistMultiTask( req, res ) {
|
|
|
2256
2256
|
userId: findUser._id ? findUser._id : '',
|
|
2257
2257
|
assignId: response?.coverage == 'store' ? storeDetails?._id : findUser._id,
|
|
2258
2258
|
coverage: response?.coverage || 'store',
|
|
2259
|
-
comments: inputBody?.showcomment ? inputBody.checkListDescription : findcomment?.
|
|
2259
|
+
comments: inputBody?.showcomment ? inputBody.checkListDescription : findcomment?.Comments,
|
|
2260
2260
|
};
|
|
2261
2261
|
await taskAssignService.create( userDetails );
|
|
2262
2262
|
// console.log( originaldata?.checklistId );
|
|
@@ -2533,7 +2533,7 @@ export async function redoTask( req, res ) {
|
|
|
2533
2533
|
initiatedTime: dayjs.utc( currentDateTime.format( 'hh:mm:ss A, DD MMM YYYY' ), 'hh:mm:ss A, DD MMM YYYY' ).format(),
|
|
2534
2534
|
answerType: question[sectionIndex].questions[req.body.payload.qno - 1].answerType,
|
|
2535
2535
|
submitedBy: taskDetails.userName,
|
|
2536
|
-
submitTime: taskDetails.submitTime,
|
|
2536
|
+
submitTime: dayjs.utc( taskDetails.submitTime ).format(),
|
|
2537
2537
|
};
|
|
2538
2538
|
|
|
2539
2539
|
await checklistLogs.create( data );
|
|
@@ -2648,7 +2648,7 @@ export async function redomultiTask( req, res ) {
|
|
|
2648
2648
|
initiatedTime: dayjs.utc( currentDateTime.format( 'hh:mm:ss A, DD MMM YYYY' ), 'hh:mm:ss A, DD MMM YYYY' ).format(),
|
|
2649
2649
|
answerType: question[sectionIndex].questions[req.body.payload.qno - 1].answerType,
|
|
2650
2650
|
submitedBy: taskDetails.userName,
|
|
2651
|
-
submitTime: taskDetails.submitTime,
|
|
2651
|
+
submitTime: dayjs.utc( taskDetails.submitTime ).format(),
|
|
2652
2652
|
};
|
|
2653
2653
|
req.body.payload._id = originalData.checklistId;
|
|
2654
2654
|
req.body.payload.section_id = originalData.section_id;
|