tango-app-api-store-builder 1.0.0-beta-62 → 1.0.0-beta-63
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
|
@@ -1076,7 +1076,7 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
1076
1076
|
|
|
1077
1077
|
if ( [ 'L2', 'L4' ].includes( fixture.toObject().productResolutionLevel ) ) {
|
|
1078
1078
|
const fixtureShelves = await fixtureShelfService.find( { fixtureId: new mongoose.Types.ObjectId( fixtureId ) } );
|
|
1079
|
-
if ( !fixtureShelves.length ) return res.sendError( 'No shelves found for the fixture', 204 );
|
|
1079
|
+
// if ( !fixtureShelves.length ) return res.sendError( 'No shelves found for the fixture', 204 );
|
|
1080
1080
|
const productCount = await planoMappingService.count( { fixtureId: new mongoose.Types.ObjectId( fixtureId ), type: 'product' } );
|
|
1081
1081
|
const shelfProducts = await Promise.all(
|
|
1082
1082
|
fixtureShelves.map( async ( shelf ) => {
|
|
@@ -1090,7 +1090,7 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
1090
1090
|
|
|
1091
1091
|
if ( fixture.toObject().productResolutionLevel === 'L3' ) {
|
|
1092
1092
|
const fixtureShelves = await fixtureShelfService.find( { fixtureId: new mongoose.Types.ObjectId( fixtureId ) } );
|
|
1093
|
-
if ( !fixtureShelves.length ) return res.sendError( 'No shelves found for the fixture', 204 );
|
|
1093
|
+
// if ( !fixtureShelves.length ) return res.sendError( 'No shelves found for the fixture', 204 );
|
|
1094
1094
|
const productCount = await planoMappingService.count( { fixtureId: new mongoose.Types.ObjectId( fixtureId ), type: 'product' } );
|
|
1095
1095
|
const groupedShelves = fixtureShelves.reduce( async ( accPromise, shelf ) => {
|
|
1096
1096
|
const acc = await accPromise;
|