tango-app-api-trax 3.9.4 → 3.9.5
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
|
@@ -2686,7 +2686,7 @@ export async function submitChecklist( req, res ) {
|
|
|
2686
2686
|
$and: [
|
|
2687
2687
|
{ _id: new ObjectId( requestData.processedcheckListId ) },
|
|
2688
2688
|
{ userId: req.user._id },
|
|
2689
|
-
{ date_string: requestData.date },
|
|
2689
|
+
{ $or: [ { date_string: requestData.date }, { redoStatus: true } ] },
|
|
2690
2690
|
],
|
|
2691
2691
|
},
|
|
2692
2692
|
} );
|
|
@@ -2706,7 +2706,9 @@ export async function submitChecklist( req, res ) {
|
|
|
2706
2706
|
let updateQuery = {};
|
|
2707
2707
|
updateQuery._id = new ObjectId( requestData.processedcheckListId );
|
|
2708
2708
|
updateQuery.userId = req.user._id;
|
|
2709
|
-
|
|
2709
|
+
if ( !getchecklist?.[0]?.redoStatus ) {
|
|
2710
|
+
updateQuery.date_string = requestData.date;
|
|
2711
|
+
}
|
|
2710
2712
|
|
|
2711
2713
|
let currentDateTime;
|
|
2712
2714
|
let storeTimeZone;
|