tango-app-api-trax 3.5.2-alpha-8 → 3.5.2-alpha-9

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.2-alpha-8",
3
+ "version": "3.5.2-alpha-9",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -289,6 +289,9 @@ export async function approveChecklist( req, res ) {
289
289
  const filteredStoreIds = req.body.storeId.filter( ( store ) => req.body.assignedStores.includes( store ) );
290
290
  query['store_id'] = { $in: filteredStoreIds };
291
291
  }
292
+ if ( req.body?.userEmail?.length ) {
293
+ query['userEmail'] = { $in: req.body?.userEmail };
294
+ }
292
295
  let checklistDetails = await processedChecklist.find( query, { _id: 1, checklistStatus: 1, storeName: 1, store_id: 1, userEmail: 1, client_id: 1, coverage: 1, checkListName: 1 } );
293
296
  if ( !checklistDetails.length ) {
294
297
  return res.sendError( 'No data found', 204 );