@nuskin/ns-product-lib 2.17.0-cx24-5822.2 → 2.17.0-cx24-5822.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.17.0-cx24-5822.2",
3
+ "version": "2.17.0-cx24-5822.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": {
@@ -102,7 +102,7 @@ async function getProducts(ids, market, locale, config) {
102
102
  const okta = parseOktaObject(sessionStorage.oktaTokens);
103
103
 
104
104
  const payload = {
105
- ...defaultPayload,
105
+ operationName: "getProducts",
106
106
  query: getProductsByIdQuery,
107
107
  variables: {
108
108
  ids,
@@ -3,7 +3,7 @@
3
3
  // eslint-disable-next-line max-len
4
4
  const getProductsByIdQuery = `query getProducts($ids: [String!]!, $market: String, $language: String, $okta: String, $quantity: Int) {
5
5
  productsById(
6
- id: $ids
6
+ ids: $ids
7
7
  market: $market
8
8
  language: $language
9
9
  okta: $okta