tango-app-api-store-builder 1.0.0-beta-139 → 1.0.0-beta-140

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-139",
3
+ "version": "1.0.0-beta-140",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -453,6 +453,12 @@ export async function getTemplateList( req, res ) {
453
453
  count: fixtureDetails[0].count[0].total,
454
454
  data: fixtureDetails[0].templateData,
455
455
  };
456
+
457
+ result.data.forEach( ( ele ) => {
458
+ ele.productBrandName = [ ...new Set( ele.productBrandName.map( ( product ) => product ) ) ];
459
+ ele.productCategory = [ ...new Set( ele.productCategory.map( ( product ) => product ) ) ];
460
+ ele.productSubCategory = [ ...new Set( ele.productSubCategory.map( ( product ) => product ) ) ];
461
+ } );
456
462
  return res.sendSuccess( result );
457
463
  } catch ( e ) {
458
464
  console.log( e );