tango-app-api-trax 3.4.1-alpha-1 → 3.4.1-alpha-2

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.1-alpha-1",
3
+ "version": "3.4.1-alpha-2",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -247,7 +247,7 @@ export const create = async ( req, res ) => {
247
247
  section.questions[qIdx].answers[index].nestedQuestion = [];
248
248
  }
249
249
  if ( answer.showLinked ) {
250
- section.questions[qIdx].answers[nestedIndex].nestedQuestion.push( answer.linkedQuestion );
250
+ // section.questions[qIdx].answers[nestedIndex].nestedQuestion.push( answer.linkedQuestion );
251
251
  if ( nestedIndex != -1 ) {
252
252
  // if ( !section.questions[qIdx].answers[nestedIndex].nestedQuestion.includes( answer.linkedQuestion ) ) {
253
253
  section.questions[qIdx].answers[nestedIndex].nestedQuestion.push( answer.linkedQuestion );
@@ -287,6 +287,7 @@ export const create = async ( req, res ) => {
287
287
  return res.sendSuccess( { checklistId: checkListId, msg: 'CheckList Created Successfully' } );
288
288
  }
289
289
  } ).catch( ( e ) => {
290
+ console.log( e );
290
291
  return res.sendError( e, 500 );
291
292
  } );
292
293
  }
@@ -296,6 +297,7 @@ export const create = async ( req, res ) => {
296
297
  }
297
298
  }
298
299
  } ).catch( async ( e ) => {
300
+ console.log( e );
299
301
  await checklistService.deleteOne( { _id: checkListId } );
300
302
  return res.sendError( e, 500 );
301
303
  } );