From 8a11293bea5b9db7a961f2f4123f703e2b0ab39f Mon Sep 17 00:00:00 2001 From: tquocanvn <89153099+tquocanvn@users.noreply.github.com> Date: Tue, 14 May 2024 16:29:04 +0700 Subject: [PATCH] chore: update sync-orama-cloud.mjs Signed-off-by: tquocanvn <89153099+tquocanvn@users.noreply.github.com> --- scripts/orama-search/sync-orama-cloud.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/orama-search/sync-orama-cloud.mjs b/scripts/orama-search/sync-orama-cloud.mjs index 91a734cc13877..34b792ff73be0 100644 --- a/scripts/orama-search/sync-orama-cloud.mjs +++ b/scripts/orama-search/sync-orama-cloud.mjs @@ -22,6 +22,8 @@ const runUpdate = async () => { batches.push(siteContent.slice(i, i + batchSize)); } + console.log(batches); + await Promise.all(batches.map(insertBatch)); };