@nuskin/ns-product-lib 2.5.0-cx24-2179.2.9 → 2.5.0-cx24-3168.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.5.0-cx24-3168.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.9...v2.5.0-cx24-3168.1) (2023-01-11)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Equinox API called for non equinox market (CX24-3168) ([14a43f1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/14a43f14134644aeb0792a116c6955eccf5831af))
7
+
1
8
  # [2.5.0-cx24-2179.2.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.8...v2.5.0-cx24-2179.2.9) (2022-12-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-2179.2.9",
3
+ "version": "2.5.0-cx24-3168.1",
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": {
@@ -17,7 +17,11 @@ const ProductData = {
17
17
  const localeMarket = `${locale}_${market}`;
18
18
 
19
19
  if (isEquinoxEnabled) {
20
- return await this.getProductFromEquinox(skus, localeMarket);
20
+ const marketConfig = await contentstack.isMarketEnabled(market);
21
+
22
+ if (marketConfig !== null) {
23
+ return await this.getProductFromEquinox(skus, localeMarket, marketConfig.store_id);
24
+ }
21
25
  }
22
26
 
23
27
  return await this.getProductFromLegacy(skus, localeMarket);