tango-app-api-store-builder 1.0.0-beta-205 → 1.0.0-beta-207

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-205",
3
+ "version": "1.0.0-beta-207",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1437,7 +1437,7 @@ export async function scanv1( req, res ) {
1437
1437
 
1438
1438
  export async function updateMissing( req, res ) {
1439
1439
  try {
1440
- const { planoId, fixtureId } = req.body;
1440
+ const { planoId, fixtureId, zone } = req.body;
1441
1441
 
1442
1442
  const [ planogram, fixture ] = await Promise.all( [
1443
1443
  planoService.findOne(
@@ -1454,12 +1454,11 @@ export async function updateMissing( req, res ) {
1454
1454
 
1455
1455
  const fixtureShelves = await fixtureShelfService.find( {
1456
1456
  fixtureId: new mongoose.Types.ObjectId( fixtureId ),
1457
+ ...( zone ? { zone } : {} ),
1457
1458
  } );
1458
1459
 
1459
1460
  if ( !fixtureShelves.length ) return res.sendError( 'No shelves found for the fixture', 204 );
1460
1461
 
1461
- console.log( 'called' );
1462
-
1463
1462
  await Promise.all(
1464
1463
  fixtureShelves.map( async ( shelf ) => {
1465
1464
  const productMappings = await planoMappingService.find( { shelfId: shelf._id } );