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 +1 -1
- package/src/controllers/gallery.controller.js +4 -3
- package/src/hbs/login-otp.hbs +943 -943
package/package.json
CHANGED
|
@@ -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
|
|
417
|
-
storeName: checklistDetails
|
|
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' );
|