tango-app-api-trax 3.4.0-flag-9 → 3.4.0-soplink2-0

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-trax",
3
- "version": "3.4.0-flag-9",
3
+ "version": "3.4.0-soplink2-0",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "mongodb": "^6.8.0",
27
27
  "nodemon": "^3.1.4",
28
28
  "path": "^0.12.7",
29
- "tango-api-schema": "^2.2.70",
30
- "tango-app-api-middleware": "^3.1.55",
29
+ "tango-api-schema": "^2.2.73",
30
+ "tango-app-api-middleware": "^3.1.66",
31
31
  "url": "^0.11.4",
32
32
  "winston": "^3.13.1",
33
33
  "winston-daily-rotate-file": "^5.0.0"
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- import { logger } from 'tango-app-api-middleware';
3
+ import { logger, insertOpenSearchData } from 'tango-app-api-middleware';
4
4
  import * as storeService from '../services/store.service.js';
5
5
  import * as groupService from '../services/group.service.js';
6
6
  import * as clusterService from '../services/cluster.service.js';
@@ -383,14 +383,13 @@ export async function redoChecklist( req, res ) {
383
383
  return res.sendError( 'section is not found', 400 );
384
384
  }
385
385
 
386
- let findQuestion = question[sectionIndex].questions.findIndex( ( ele ) => ele.qno == req.body.payload.qno );
387
-
386
+ let findQuestion = question[sectionIndex].questions.findIndex( ( ele ) => ele.uniqueNo == req.body.payload.uniqueNo );
388
387
  let data = { ...question[sectionIndex].questions[findQuestion], redo: true, redoComment: req.body.payload?.checklistDescription || '' };
389
388
  // if ( checklistDetails.client_id == '458' ) {
390
389
  data.answers.forEach( ( item ) => {
391
390
  if ( item.showLinked ) {
392
391
  item.nestedQuestion.forEach( ( ele ) => {
393
- let eleIndex = question[sectionIndex].questions.findIndex( ( qn ) => qn.qno == parseInt( ele ) );
392
+ let eleIndex = question[sectionIndex].questions.findIndex( ( qn ) => qn.uniqueNo == parseInt( ele ) );
394
393
  let element = { ...question[sectionIndex].questions[eleIndex], redo: true, redoComment: '', linkquestionenabled: false };
395
394
  question[sectionIndex].questions[eleIndex] = element;
396
395
  question[sectionIndex].questions[eleIndex].userAnswer = [];