tango-app-api-trax 3.5.0-alpha-1 → 3.5.0-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.5.0-alpha-1",
3
+ "version": "3.5.0-alpha-2",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -302,7 +302,7 @@ export async function approveChecklist( req, res ) {
302
302
  approvalByName: req.user.userName,
303
303
  approvalByEmail: req.user.email,
304
304
  };
305
- let updateResponse = await processedChecklist.updateMany( { _id: { $in: idList } }, approvalUpdateData );
305
+ let updateResponse = await processedChecklist.updateMany( { _id: { $in: idList }, approvalStatus: false }, approvalUpdateData );
306
306
  if ( updateResponse.modifiedCount || updateResponse.matchedCount ) {
307
307
  let inputstores = checklistDetails.filter( ( data ) => data.checklistStatus == 'submit' );
308
308
  let storeNames = inputstores.map( ( data ) => data.storeName );