tango-app-api-task 3.4.1-activitylog-16 → 3.4.1-activitylog-18
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
|
@@ -1134,12 +1134,12 @@ export async function taskConfig( req, res ) {
|
|
|
1134
1134
|
logDetails: {
|
|
1135
1135
|
schedule: {
|
|
1136
1136
|
previous: {
|
|
1137
|
-
...( showSchedule ) ? {
|
|
1137
|
+
...( showSchedule ) ? { scheduleDateString: checklistDetails?.scheduleDate } :{},
|
|
1138
1138
|
time: showSchedule ? checklistDetails.scheduleEndTime : '',
|
|
1139
1139
|
priority: showSchedule ? checklistDetails?.priorityType : '',
|
|
1140
1140
|
},
|
|
1141
1141
|
new: {
|
|
1142
|
-
...( showSchedule ) ? {
|
|
1142
|
+
...( showSchedule ) ? { scheduleDateString: configDetails?.scheduleDate } :{},
|
|
1143
1143
|
time: showSchedule ? configDetails.scheduleEndTime : '',
|
|
1144
1144
|
priority: showSchedule ? configDetails?.priorityType : '',
|
|
1145
1145
|
},
|
|
@@ -1517,7 +1517,7 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1517
1517
|
element4.streamId = inputBody?.streamId;
|
|
1518
1518
|
}
|
|
1519
1519
|
if ( answerTypechange ) {
|
|
1520
|
-
element4.
|
|
1520
|
+
element4.planoType = 'qrScan';
|
|
1521
1521
|
}
|
|
1522
1522
|
element4.coverage = getCLconfig?.coverage;
|
|
1523
1523
|
assignUserList.push( element4 );
|
|
@@ -1808,12 +1808,12 @@ export async function reinitiateTask( req, res ) {
|
|
|
1808
1808
|
logDetails: {
|
|
1809
1809
|
schedule: {
|
|
1810
1810
|
previous: {
|
|
1811
|
-
...( showSchedule ) ? {
|
|
1811
|
+
...( showSchedule ) ? { scheduleDateString: taskDetails?.scheduleDate } :{},
|
|
1812
1812
|
time: showSchedule ? taskDetails.scheduleEndTime : '',
|
|
1813
1813
|
priority: showSchedule ? taskDetails?.priorityType : '',
|
|
1814
1814
|
},
|
|
1815
1815
|
new: {
|
|
1816
|
-
...( showSchedule ) ? {
|
|
1816
|
+
...( showSchedule ) ? { scheduleDateString: req.body?.scheduleDate } :{},
|
|
1817
1817
|
time: showSchedule ? req.body.scheduleEndTime : '',
|
|
1818
1818
|
priority: showSchedule ? req.body?.priorityType : '',
|
|
1819
1819
|
},
|
|
@@ -3790,16 +3790,18 @@ export async function eyeTesttask( req, res ) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
question[0].questionReferenceImage = images;
|
|
3792
3792
|
} else {
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3793
|
+
if ( req.files&&req.files.referenceImage ) {
|
|
3794
|
+
let uplaodedImage = await uploadmultiImage( req.files.referenceImage );
|
|
3795
|
+
let imgUrl = decodeURIComponent( uplaodedImage.imgUrl.split( '?' )[0] );
|
|
3796
|
+
let url = imgUrl.split( '/' );
|
|
3797
|
+
if ( url.includes( 'https:' ) || url.includes( 'http:' ) ) {
|
|
3798
|
+
url.splice( 0, 3 );
|
|
3799
|
+
}
|
|
3800
|
+
images.push( url.join( '/' ) );
|
|
3801
3801
|
|
|
3802
|
-
|
|
3802
|
+
question[0].questionReferenceImage = images;
|
|
3803
|
+
}
|
|
3804
|
+
let images = [];
|
|
3803
3805
|
}
|
|
3804
3806
|
|
|
3805
3807
|
if ( inputBody?.answerType === 'image' || inputBody?.answerType === 'descriptiveImage' || inputBody?.answerType === 'multipleImage' ) {
|