tango-app-api-task 3.4.1-activitylog-18 → 3.4.1-activitylog-20

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.4.1-activitylog-18",
3
+ "version": "3.4.1-activitylog-20",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1517,6 +1517,7 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
1517
1517
  element4.streamId = inputBody?.streamId;
1518
1518
  }
1519
1519
  if ( answerTypechange ) {
1520
+ element4.questionAnswers= insertdata.questionAnswers;
1520
1521
  element4.planoType = 'qrScan';
1521
1522
  }
1522
1523
  element4.coverage = getCLconfig?.coverage;
@@ -3790,6 +3791,7 @@ export async function eyeTesttask( req, res ) {
3790
3791
  }
3791
3792
  question[0].questionReferenceImage = images;
3792
3793
  } else {
3794
+ let images = [];
3793
3795
  if ( req.files&&req.files.referenceImage ) {
3794
3796
  let uplaodedImage = await uploadmultiImage( req.files.referenceImage );
3795
3797
  let imgUrl = decodeURIComponent( uplaodedImage.imgUrl.split( '?' )[0] );
@@ -3801,7 +3803,6 @@ export async function eyeTesttask( req, res ) {
3801
3803
 
3802
3804
  question[0].questionReferenceImage = images;
3803
3805
  }
3804
- let images = [];
3805
3806
  }
3806
3807
 
3807
3808
  if ( inputBody?.answerType === 'image' || inputBody?.answerType === 'descriptiveImage' || inputBody?.answerType === 'multipleImage' ) {
@@ -3829,6 +3830,7 @@ export async function eyeTesttask( req, res ) {
3829
3830
  checkListName: data.checkListName,
3830
3831
  client_id: inputBody.clientId,
3831
3832
  userId: userId,
3833
+ assignId:storeDetails?._id
3832
3834
  };
3833
3835
  await taskAssignService.create( userDetails );
3834
3836
  await insertSingleProcessData( response?._id, true, inputBody );