@nuskin/ns-product-lib 2.5.0-cx24-31681.3 → 2.5.0-cx24-31681.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/productData.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [2.5.0-cx24-31681.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-31681.4...v2.5.0-cx24-31681.5) (2023-01-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* Equinox API called for non equinox market (CX24-3168) ([5f2dda8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/5f2dda82f57c5f223678a76a1b2af83fd4bafd0d))
|
7
|
+
|
8
|
+
# [2.5.0-cx24-31681.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-31681.3...v2.5.0-cx24-31681.4) (2023-01-12)
|
9
|
+
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* Equinox API called for non equinox market (CX24-3168) ([e59258e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/e59258e201e649a424d8cf28d5965f6d221383a3))
|
14
|
+
|
1
15
|
# [2.5.0-cx24-31681.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-31681.2...v2.5.0-cx24-31681.3) (2023-01-12)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -19,16 +19,16 @@ const ProductData = {
|
|
19
19
|
if (isEquinoxEnabled) {
|
20
20
|
let config = (await getConfiguration({
|
21
21
|
configMapNames: ['Equinox_Markets'],
|
22
|
-
country:
|
22
|
+
country: market,
|
23
23
|
environment: 'test',
|
24
24
|
clientId: '735b1eb810304bba966af0891ab54053'
|
25
25
|
})).Equinox_Markets;
|
26
26
|
console.log(config)
|
27
|
-
if (config) {
|
27
|
+
if (config.country_code != '') {
|
28
28
|
return await this.getProductFromEquinox(skus, localeMarket, config);
|
29
29
|
}
|
30
30
|
}
|
31
|
-
|
31
|
+
console.log(`Going to legacy API. market is ${market}`)
|
32
32
|
return await this.getProductFromLegacy(skus, localeMarket);
|
33
33
|
},
|
34
34
|
|