Skip to content

Commit

Permalink
Merge pull request #321 from priyanshee1604/#317
Browse files Browse the repository at this point in the history
Improved: the payload for getShopifyConfigDetails as the Shopify's API response structure has changed.(#317)
  • Loading branch information
ymaheshwari1 authored Feb 25, 2025
2 parents fecacaf + c20a90e commit fc1d55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/audit-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ export default defineComponent({
"rows": 1,
"sort": "_timestamp_ desc",
} as any,
"filter": `docType: BULKOPERATION AND operation: 'SHOP_PREORDER_SYNC AND data_productVariantUpdate_productVariant_id: (${configAndIdData.variantProductId && `"gid://shopify/ProductVariant/${configAndIdData.variantProductId}" OR`} "gid://hotwax/ProductVariant/id/${configAndIdData.hcVariantProductId}") AND data_productVariantUpdate_productVariant_metafields_edges_node_namespace: "HC_PREORDER"`,
"filter": `docType: BULKOPERATION AND operation: 'SHOP_PREORDER_SYNC AND data.productVariantUpdate.productVariant.id: (${configAndIdData.variantProductId && `"gid://shopify/ProductVariant/${configAndIdData.variantProductId}" OR`} "gid://hotwax/ProductVariant/id/${configAndIdData.hcVariantProductId}") AND data.productVariantUpdate.productVariant.metafields.edges.node.namespace: "HC_PREORDER"`,
"query": "*:*",
},
"coreName": "shopifyCore"
Expand All @@ -1106,7 +1106,7 @@ export default defineComponent({
return Promise.resolve(this.shopListings)
}
const listDataDoc = JSON.parse(JSON.stringify(resp.data.response.docs[0]))
const metafieldValueList = listDataDoc.data_productVariantUpdate_productVariant_metafields_edges_node_value;
const metafieldValueList = listDataDoc.data.productVariantUpdate.productVariant.metafields.edges.node.value;
const metafieldValue = metafieldValueList.length > 0 ? JSON.parse(metafieldValueList[0]): {};
listData = {
...listData,
Expand Down

0 comments on commit fc1d55a

Please sign in to comment.