tango-app-api-store-builder 1.1.11 → 1.1.12
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
|
@@ -3537,7 +3537,7 @@ export async function shelfProduct( req, res ) {
|
|
|
3537
3537
|
if ( req.body?.compliance ) {
|
|
3538
3538
|
// const getFixtureDetails = allFixtures.filter( ( ele ) => ele._id.toString() == fixture._id.toString() );
|
|
3539
3539
|
const getAllFixtures = allFixtures.flatMap( ( shelf ) => shelf.shelfConfig.filter( ( ele ) => ele.shelfType !='vmonly' ) );
|
|
3540
|
-
|
|
3540
|
+
|
|
3541
3541
|
|
|
3542
3542
|
shelfMapping = getAllFixtures.reduce( ( acc, ele ) => {
|
|
3543
3543
|
let productList = ele.productBrandName?.toString()?.toLowerCase();
|
|
@@ -9518,6 +9518,7 @@ export async function getFixtureShelfRfidDetails( req, res ) {
|
|
|
9518
9518
|
header: fixt?.header?.label,
|
|
9519
9519
|
brandName: fixt?.templateGroupName,
|
|
9520
9520
|
shelves: fixtureShelf,
|
|
9521
|
+
uniqueFixture: `Fixture ${fixt.fixtureNumber}`,
|
|
9521
9522
|
};
|
|
9522
9523
|
result.push( data );
|
|
9523
9524
|
} );
|
|
@@ -9631,9 +9632,9 @@ export async function getStoreFixtureEngagers( req, res ) {
|
|
|
9631
9632
|
}
|
|
9632
9633
|
result[ele].push( product );
|
|
9633
9634
|
} ) );
|
|
9634
|
-
result[`${ele}`].sort( ( a, b ) =>
|
|
9635
|
+
result[`${ele}`].sort( ( a, b ) => b.count - a.count );
|
|
9635
9636
|
} ) );
|
|
9636
|
-
return res.sendSuccess(
|
|
9637
|
+
return res.sendSuccess( result );
|
|
9637
9638
|
}
|
|
9638
9639
|
return res.sendError( 'No data found', 204 );
|
|
9639
9640
|
} catch ( e ) {
|