tango-app-api-trax 3.3.1-beta-24 → 3.3.1-beta-25

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.3.1-beta-24",
3
+ "version": "3.3.1-beta-25",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -397,6 +397,7 @@ export async function redoChecklist( req, res ) {
397
397
  };
398
398
 
399
399
  let response = await processedChecklist.updateOne( { _id: req.body.payload._id }, updateData );
400
+ conosole.log( response );
400
401
  if ( response.modifiedCount || response.matchedCount ) {
401
402
  let storeTimeZone = await storeService.findOne( { storeName: checklistDetails.storeName }, { 'storeProfile.timeZone': 1 } );
402
403
  let currentDateTime;
@@ -413,8 +414,8 @@ export async function redoChecklist( req, res ) {
413
414
  sectionName: question[sectionIndex].sectionName,
414
415
  questionName: question[sectionIndex].questions[findQuestion].qname,
415
416
  action: 'redo',
416
- store_id: checklistDetails.store_id,
417
- storeName: checklistDetails.storeName,
417
+ store_id: checklistDetails?.store_id?checklistDetails?.store_id:'',
418
+ storeName: checklistDetails?.storeName?checklistDetails?.storeName:'',
418
419
  client_id: checklistDetails.client_id,
419
420
  processedChecklistId: checklistDetails._id,
420
421
  type: checklistDetails.checkListType,
@@ -438,7 +439,7 @@ export async function redoChecklist( req, res ) {
438
439
  };
439
440
  let url = JSON.parse( process.env.LAMBDAURL );
440
441
  let searchResponse = await fetch( url.redoChecklist, requestOptions );
441
-
442
+ console.log( searchResponse.ok );
442
443
 
443
444
  if ( searchResponse.ok ) {
444
445
  return res.sendSuccess( 'Question redo successfully' );