tango-app-api-store-builder 1.0.7 → 1.0.8

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.7",
3
+ "version": "1.0.8",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "path": "^0.12.7",
33
33
  "selenium-webdriver": "^4.31.0",
34
34
  "sharp": "^0.34.1",
35
- "tango-api-schema": "^2.4.31",
35
+ "tango-api-schema": "^2.5.3",
36
36
  "tango-app-api-middleware": "3.1.48",
37
37
  "url": "^0.11.4",
38
38
  "winston": "^3.17.0",
@@ -3472,6 +3472,7 @@ export async function fixtureShelfProductv2( req, res ) {
3472
3472
  );
3473
3473
 
3474
3474
  let storageProducts = await planoMappingService.find( { fixtureId: new mongoose.Types.ObjectId( fixtureId ), type: 'storageBox' } );
3475
+ storageProducts = await getProducts( storageProducts );
3475
3476
  return res.sendSuccess( { ...fixture.toObject(), shelves: shelfProducts, vmConfig: vmDetails, productCount: productCount, storageProducts: storageProducts, fixtureImage: fixtureImage } );
3476
3477
  }
3477
3478
 
@@ -7630,7 +7631,7 @@ export async function getPlanogramList( req, res ) {
7630
7631
 
7631
7632
  const today = new Date( dayjs().format( 'YYYY-MM-DD' ) );
7632
7633
 
7633
- const storeQuery = { clientId,status:'active' };
7634
+ const storeQuery = { clientId, status: 'active' };
7634
7635
 
7635
7636
  if ( filter?.country?.length ) {
7636
7637
  storeQuery['storeProfile.country'] = { $in: filter.country };
@@ -7640,7 +7641,7 @@ export async function getPlanogramList( req, res ) {
7640
7641
  storeQuery['storeProfile.city'] = { $in: filter.city };
7641
7642
  }
7642
7643
 
7643
- const storeDocs = await storeService.find( storeQuery,{storeId:1,storeProfile:1} );
7644
+ const storeDocs = await storeService.find( storeQuery, { storeId: 1, storeProfile: 1 } );
7644
7645
 
7645
7646
  if ( !storeDocs.length ) {
7646
7647
  return res.sendSuccess( { data: [], count: 0 } );