From e3b335a5ce15e4a9461007827fe26ca7d395a882 Mon Sep 17 00:00:00 2001 From: k2maan Date: Thu, 21 Sep 2023 12:57:08 +0530 Subject: [PATCH] Fixed: solr-query for fetching shopifyConfigDetails to honour variantProductId only if its available (#231) --- src/views/catalog-product-details.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/catalog-product-details.vue b/src/views/catalog-product-details.vue index 2b157eda..a99b7ff1 100644 --- a/src/views/catalog-product-details.vue +++ b/src/views/catalog-product-details.vue @@ -1033,10 +1033,7 @@ export default defineComponent({ "rows": 1, "sort": "_timestamp_ desc", } as any, - "filter": `docType: BULKOPERATION - AND operation: 'SHOP_PREORDER_SYNC' - AND data_productVariantUpdate_productVariant_id: ("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"