@nuskin/ns-product-lib 2.5.0-cx24-3168.5 → 2.5.0-cx24-31681.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,18 @@
1
+ # [2.5.0-cx24-31681.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-31681.1) (2023-01-12)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Equinox API called for non equinox market (CX24-3168) ([a44450d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a44450de717c36f2eba0ac08af8f90ce44ed96e2))
7
+ * Equinox API called for non equinox market (CX24-3168) ([8c0c23d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/8c0c23db6ed1bc89b7fd651cf3e062d88e47c0e5))
8
+
9
+ # [2.5.0-cx24-3168.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.5...v2.5.0-cx24-3168.6) (2023-01-12)
10
+
11
+
12
+ ### Fix
13
+
14
+ * Equinox API called for non equinox market (CX24-3168) ([20a5c53](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/20a5c5369c27f4841cf6672266d05d8c1fd542e4))
15
+
1
16
  # [2.5.0-cx24-3168.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.4...v2.5.0-cx24-3168.5) (2023-01-11)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-3168.5",
3
+ "version": "2.5.0-cx24-31681.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,14 +17,14 @@ const ProductData = {
17
17
  const localeMarket = `${locale}_${market}`;
18
18
 
19
19
  if (isEquinoxEnabled) {
20
- const config = (await getConfiguration({
20
+ let config = (await getConfiguration({
21
21
  configMapNames: ['Equinox_Markets'],
22
22
  country: locale.split('_')[1],
23
23
  environment: 'test',
24
24
  clientId: '735b1eb810304bba966af0891ab54053'
25
25
  })).Equinox_Markets;
26
26
 
27
- if (config.store_id !== null) {
27
+ if (config.country_code !== null || config.country_code !== '') {
28
28
  return await this.getProductFromEquinox(skus, localeMarket, config);
29
29
  }
30
30
  }