@nuskin/ns-product-lib 2.22.0-mdigi-6056.3 → 2.22.0-mdigi-6056.4

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": "@nuskin/ns-product-lib",
3
- "version": "2.22.0-mdigi-6056.3",
3
+ "version": "2.22.0-mdigi-6056.4",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -293,7 +293,6 @@ async function mapProduct(product, market, locale, config) {
293
293
  "sku": sku,
294
294
  "globalProductID": productOrVariant.globalId && productOrVariant.globalId !== productOrVariant.sku ? productOrVariant.globalId : productOrVariant.id,
295
295
  "title": productOrVariant.title,
296
- "categories": productOrVariant.categories || [],
297
296
  "country": market,
298
297
  "language": locale,
299
298
  "shortDescr": productOrVariant.description,
@@ -202,7 +202,7 @@ const ProductData = {
202
202
  "sku": eqVariant.identifier,
203
203
  "globalProductID": eqVariant.identifier,
204
204
  "title": eqVariant.properties.name,
205
- "categories": eqVariant.properties.categories || [],
205
+ "categories": eqVariant.properties.productCategory || [],
206
206
  "country": eqVariant.properties.market,
207
207
  "language": "en",
208
208
  "shortDescr": eqVariant.properties.description,
@@ -459,7 +459,7 @@ const ProductData = {
459
459
  "sku": productSku,
460
460
  "globalProductID": productData.identifier,
461
461
  "title": productTitle,
462
- "categories": productData.properties.categories || product.properties.categories || [],
462
+ "categories": productData.properties.productCategory || product.properties.productCategory || [],
463
463
  "country": product.properties.market,
464
464
  "language": "en",
465
465
  "shortDescr": productData.properties.description,