Skip to content

Commit d05deae

Browse files
drew-harrisskeptrunedev
authored andcommitted
cleanup: remove timeout on product scrape
1 parent 40ca7a1 commit d05deae

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ export const sendChunks = async (
447447
}
448448

449449
await Promise.all(chunkSendPromises);
450-
await new Promise((resolve) => setTimeout(resolve, 4000));
451450
setMetafield(
452451
adminApiFetcher,
453452
"crawlStatus",

clients/trieve-shopify-extension/app/routes/app.setup.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ export const loader = async (args: LoaderFunctionArgs) => {
4848
},
4949
});
5050

51-
sendChunks(datasetId ?? "", trieveKey, adminApi, session, crawlOptions)
52-
.then(() => {})
53-
.catch(console.error);
51+
sendChunks(
52+
datasetId ?? "",
53+
trieveKey,
54+
adminApi,
55+
session,
56+
crawlOptions,
57+
).catch(console.error);
5458
};
5559

5660
const setAppMetafields = async (

0 commit comments

Comments
 (0)