Skip to content

Commit ff47290

Browse files
committed
bugfix(shopify): set dataChunksResolved to []
1 parent 2f79d10 commit ff47290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ export async function sendChunksFromWebhook(
335335
);
336336
});
337337

338+
let dataChunksResolved: ChunkReqPayload[] = [];
338339
try {
339-
let dataChunksResolved = await Promise.all(dataChunks);
340+
dataChunksResolved = await Promise.all(dataChunks);
340341
} catch (e) {
341342
console.error(`Error getting chunks to send to Trieve: ${e}`);
342343
}

0 commit comments

Comments
 (0)