tango-app-api-task 3.4.1-activitylog-11 → 3.4.1-activitylog-12

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-11",
3
+ "version": "3.4.1-activitylog-12",
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.106",
28
+ "tango-api-schema": "^2.2.108",
29
29
  "tango-app-api-middleware": "^3.1.58",
30
30
  "winston": "^3.17.0",
31
31
  "winston-daily-rotate-file": "^5.0.0"
@@ -1221,7 +1221,7 @@ function findObjectDifference( oldObj, newObj ) {
1221
1221
  }
1222
1222
 
1223
1223
 
1224
- export async function insertSingleProcessData( checklistId,answerTypechange,inputBody ) {
1224
+ export async function insertSingleProcessData( checklistId, answerTypechange, inputBody ) {
1225
1225
  try {
1226
1226
  let currentdate = new Date();
1227
1227
  let date = dayjs( currentdate ).format();
@@ -1333,7 +1333,7 @@ export async function insertSingleProcessData( checklistId,answerTypechange,inpu
1333
1333
  updatedchecklist = checklistDetails;
1334
1334
  }
1335
1335
  if ( updatedchecklist ) {
1336
- await insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, dateVal, startTimeIso, endTimeIso, insertdata,answerTypechange,inputBody );
1336
+ await insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, dateVal, startTimeIso, endTimeIso, insertdata, answerTypechange, inputBody );
1337
1337
  }
1338
1338
  }
1339
1339
  }
@@ -1345,7 +1345,7 @@ export async function insertSingleProcessData( checklistId,answerTypechange,inpu
1345
1345
  }
1346
1346
  };
1347
1347
 
1348
- async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date, startTimeIso, endTimeIso, insertdata,answerTypechange ) {
1348
+ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date, startTimeIso, endTimeIso, insertdata, answerTypechange, inputBody ) {
1349
1349
  let getquestionQuery = [];
1350
1350
 
1351
1351
  if ( dayjs( getCLconfig.publishDate ).format( 'YYYY-MM-DD' ) != dayjs( date ).format( 'YYYY-MM-DD' ) ) {
@@ -1513,11 +1513,11 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
1513
1513
  element4.remainder = getCLconfig?.remainder || [];
1514
1514
  element4.restrictAttendance = getCLconfig?.restrictAttendance;
1515
1515
  element4.coverage = getCLconfig?.coverage;
1516
- if(inputBody&&inputBody?.streamId){
1516
+ if ( inputBody&&inputBody?.streamId ) {
1517
1517
  element4.streamId = inputBody?.streamId;
1518
1518
  }
1519
- if(answerTypechange){
1520
- element4.planotype = "qrScan"
1519
+ if ( answerTypechange ) {
1520
+ element4.planotype = 'qrScan';
1521
1521
  }
1522
1522
  element4.coverage = getCLconfig?.coverage;
1523
1523
  assignUserList.push( element4 );
@@ -3830,7 +3830,7 @@ export async function eyeTesttask( req, res ) {
3830
3830
  userId: userId,
3831
3831
  };
3832
3832
  await taskAssignService.create( userDetails );
3833
- await insertSingleProcessData( response?._id,true,inputBody);
3833
+ await insertSingleProcessData( response?._id, true, inputBody );
3834
3834
  return res.sendSuccess( 'Task created successfully' );
3835
3835
  }
3836
3836
  } catch ( e ) {