Skip to content

Commit f3ca07f

Browse files
committed
bugfix(shopify): rename bodyHtml to descriptionHtml and increase variants limit to 120
1 parent 839d7b5 commit f3ca07f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

clients/trieve-shopify-extension/app/processors/getProducts.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,15 @@ export const sendChunks = async (
383383
id
384384
title
385385
productType
386-
bodyHtml
386+
descriptionHtml
387387
handle
388388
tags
389389
status
390390
category {
391391
name
392392
}
393393
totalInventory
394-
variants(first: 20) {
394+
variants(first: 120) {
395395
nodes {
396396
id
397397
displayName
@@ -425,6 +425,7 @@ export const sendChunks = async (
425425
);
426426

427427
if (response.error) {
428+
console.error(`Error fetching products from Shopify: ${response.error}`);
428429
throw response.error;
429430
}
430431
const dataChunks: ChunkReqPayload[] = response.data.products.nodes.flatMap(

0 commit comments

Comments
 (0)