From 8194e92af0c192013dd51a3a91d2f797d5503429 Mon Sep 17 00:00:00 2001 From: tquocanvn <89153099+tquocanvn@users.noreply.github.com> Date: Tue, 14 May 2024 17:01: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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/orama-search/sync-orama-cloud.mjs b/scripts/orama-search/sync-orama-cloud.mjs index 29d1d962709e8..6689c39201fcd 100644 --- a/scripts/orama-search/sync-orama-cloud.mjs +++ b/scripts/orama-search/sync-orama-cloud.mjs @@ -56,7 +56,7 @@ const emptyOramaIndex = async () => await fetch(`${ORAMA_API_BASE_URL}/snapshot`, { method: 'POST', headers: oramaHeaders, - body: JSON.stringify([]), + body: JSON.stringify([{ id: '1' }]), }); // Now we proceed to call the APIs in order: @@ -65,7 +65,6 @@ const emptyOramaIndex = async () => // 3. Trigger a deployment // Once all these steps are done, the new documents will be available in the live index. // Allow Orama up to 1 minute to distribute the documents to all the 300+ nodes worldwide. -console.log(INDEX_ID); await emptyOramaIndex(); await runUpdate(); await triggerDeployment();