tango-app-api-task 3.6.2-bulktask-7 → 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
|
@@ -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:
|
|
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,7 +2530,7 @@ 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(
|
|
2533
|
+
initiatedTime: dayjs.utc( ).format(),
|
|
2534
2534
|
answerType: question[sectionIndex].questions[req.body.payload.qno - 1].answerType,
|
|
2535
2535
|
submitedBy: taskDetails.userName,
|
|
2536
2536
|
submitTime: dayjs.utc( taskDetails.submitTime ).format(),
|
|
@@ -2645,7 +2645,7 @@ 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(
|
|
2648
|
+
initiatedTime: dayjs.utc().format(),
|
|
2649
2649
|
answerType: question[sectionIndex].questions[req.body.payload.qno - 1].answerType,
|
|
2650
2650
|
submitedBy: taskDetails.userName,
|
|
2651
2651
|
submitTime: dayjs.utc( taskDetails.submitTime ).format(),
|