tango-app-api-task 3.6.2-bulktask-6 → 3.6.2-bulktask-8

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-6",
3
+ "version": "3.6.2-bulktask-8",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1632,7 +1632,7 @@ export async function uploadImage( req, res ) {
1632
1632
  return res.sendError( { message: 'Something went wrong' }, 500 );
1633
1633
  }
1634
1634
 
1635
- return res.sendSuccess( { message: 'Uploaded Successfully', imgUrl: imgUrl, path: imgUrl.Key } );
1635
+ return res.sendSuccess( { message: 'Uploaded Successfully', imgUrl: imgUrl, path: inputData.file_path } );
1636
1636
  } catch ( e ) {
1637
1637
  logger.error( 'uploadImage =>', e );
1638
1638
  return res.sendError( e, 500 );
@@ -2530,10 +2530,10 @@ export async function redoTask( req, res ) {
2530
2530
  type: taskDetails.checkListType,
2531
2531
  userAnswer: userAnswer,
2532
2532
  initiatedBy: req.user.userName,
2533
- initiatedTime: dayjs.utc( currentDateTime.format( 'hh:mm:ss A, DD MMM YYYY' ), 'hh:mm:ss A, DD MMM YYYY' ).format(),
2533
+ initiatedTime: dayjs.utc( ).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 );
@@ -2645,10 +2645,10 @@ export async function redomultiTask( req, res ) {
2645
2645
  type: taskDetails.checkListType,
2646
2646
  userAnswer: userAnswer,
2647
2647
  initiatedBy: req.user.userName,
2648
- initiatedTime: dayjs.utc( currentDateTime.format( 'hh:mm:ss A, DD MMM YYYY' ), 'hh:mm:ss A, DD MMM YYYY' ).format(),
2648
+ initiatedTime: dayjs.utc().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;