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

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-47",
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 } );
@@ -417,9 +417,9 @@ export async function updateStatus( req, res ) {
417
417
 
418
418
  export async function updateAnswers( req, res ) {
419
419
  try {
420
- if ( !req.body.fixtureId ) {
421
- return res.sendError( 'No data found', 204 );
422
- }
420
+ // if ( !req.body.fixtureId ) {
421
+ // return res.sendError( 'No data found', 204 );
422
+ // }
423
423
 
424
424
  req.body.answers.forEach( ( ans ) => {
425
425
  if ( ans.image && ans.image.includes( 'http' ) ) {