Skip to content

Commit

Permalink
chore: update sync-orama-cloud.mjs
Browse files Browse the repository at this point in the history
Signed-off-by: tquocanvn <[email protected]>
  • Loading branch information
tquocanvn authored May 14, 2024
1 parent 35ddf36 commit 8194e92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/orama-search/sync-orama-cloud.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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();

0 comments on commit 8194e92

Please sign in to comment.