tango-app-api-store-builder 1.0.0-beta-45 → 1.0.0-beta-46

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-store-builder",
3
- "version": "1.0.0-beta-45",
3
+ "version": "1.0.0-beta-46",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -348,7 +348,7 @@ export async function getTaskDetails( req, res ) {
348
348
  return res.sendError( 'Store id is required', 400 );
349
349
  }
350
350
  let date = req.query?.date || dayjs().format( 'YYYY-MM-DD' );
351
- let getDetails = await processedService.find( { store_id: req.query.storeId, date_string: date, isPlano: true, checklistStatus: { $ne: 'submit' } }, { checkListName: 1, taskType: '$type' } );
351
+ let getDetails = await processedService.find( { store_id: req.query.storeId, date_string: date, isPlano: true, checklistStatus: { $ne: 'submit' } }, { checkListName: 1, taskType: '$planoType' } );
352
352
  return res.sendSuccess( getDetails );
353
353
  } catch ( e ) {
354
354
  logger.error( { functionName: 'getTaskDetails', error: e } );