tango-app-api-store-builder 1.0.22 → 1.0.23

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.22",
3
+ "version": "1.0.23",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1368,7 +1368,7 @@ export async function updateStoreFixture( req, res ) {
1368
1368
  };
1369
1369
  vmDetails = await planoVmService.create( planovmData );
1370
1370
  }
1371
- vmConfig.push( { ...vm, vmId: vmDetails._id } );
1371
+ vmConfig.push( { ...vm, vmId: vmDetails._id, vmName: vmDetails.vmName, vmImage: vmDetails.vmImageUrl } );
1372
1372
  }
1373
1373
  data.vmConfig = vmConfig;
1374
1374
  let groupName = {
@@ -543,7 +543,7 @@ export async function getPlanoTaskDetails( req, res ) {
543
543
  return res.sendError( 'Store id is required', 400 );
544
544
  }
545
545
  let date = req.query?.date || dayjs().format( 'YYYY-MM-DD' );
546
- let getDetails = await processedService.find( { store_id: req.query.storeId, date_string: date, isPlano: true, checklistStatus: { $ne: 'submit' }, userId: req.user._id }, { checkListName: 1, taskType: '$planoType', checklistStatus: 1, redoStatus: 1, planoId: 1, floorId: 1 } );
546
+ let getDetails = await processedService.find( { store_id: req.query.storeId, date_string: date, isPlano: true, checklistStatus: { $ne: 'submit' }, userId: req.user._id }, { checkListName: 1, taskType: '$planoType', checklistStatus: 1, redoStatus: 1, planoId: 1, floorId: 1, refTaskId: 1 } );
547
547
  return res.sendSuccess( getDetails );
548
548
  } catch ( e ) {
549
549
  logger.error( { functionName: 'getTaskDetails', error: e } );