@nuskin/ns-product-lib 2.5.0-cx24-3168.4 → 2.5.0-cx24-3168.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/productData.js +6 -9
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [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
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* Equinox API called for non equinox market (CX24-3168) ([61c568f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/61c568f9696a18451e27de4918a2e8863b0233f4))
|
7
|
+
|
1
8
|
# [2.5.0-cx24-3168.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3168.3...v2.5.0-cx24-3168.4) (2023-01-11)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -4,7 +4,6 @@ const { getConfiguration } = require('@nuskin/configuration-sdk');
|
|
4
4
|
const axios = require("axios");
|
5
5
|
const contentstack = require('./contentstack/contentstack');
|
6
6
|
const Product = require("./product");
|
7
|
-
let config = {};
|
8
7
|
|
9
8
|
/** @type {*} */
|
10
9
|
const ProductData = {
|
@@ -18,14 +17,12 @@ const ProductData = {
|
|
18
17
|
const localeMarket = `${locale}_${market}`;
|
19
18
|
|
20
19
|
if (isEquinoxEnabled) {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
})).Equinox_Markets;
|
28
|
-
}
|
20
|
+
const config = (await getConfiguration({
|
21
|
+
configMapNames: ['Equinox_Markets'],
|
22
|
+
country: locale.split('_')[1],
|
23
|
+
environment: 'test',
|
24
|
+
clientId: '735b1eb810304bba966af0891ab54053'
|
25
|
+
})).Equinox_Markets;
|
29
26
|
|
30
27
|
if (config.store_id !== null) {
|
31
28
|
return await this.getProductFromEquinox(skus, localeMarket, config);
|