tango-app-api-trax 3.0.1 → 3.0.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.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -246,6 +246,9 @@ export async function sopMobilechecklistValidater( req, res, next ) {
246
246
  export async function sopMobilechecklistQuestionValidator( req, res, next ) {
247
247
  try {
248
248
  let requestData = req.body;
249
+
250
+ logger.error( { function: 'CheckEmptyQA', error: requestData } );
251
+
249
252
  requestData.questionAnswers = typeof requestData.questionAnswers == 'string' ? JSON.parse( requestData.questionAnswers ) : requestData.questionAnswers;
250
253
  let getChecklistQA = await processedchecklist.findOne( { _id: new ObjectId( requestData.processedcheckListId ) }, { questionAnswers: 1 } );
251
254
  if ( !getChecklistQA ) {