diff --git a/scripts/orama-search/sync-orama-cloud.mjs b/scripts/orama-search/sync-orama-cloud.mjs index 21a95668210df..5bfd11f6ba41d 100644 --- a/scripts/orama-search/sync-orama-cloud.mjs +++ b/scripts/orama-search/sync-orama-cloud.mjs @@ -30,7 +30,6 @@ const runUpdate = async () => { // Orama will keep a queue of all the documents we send, and will process them once we call the "deploy" API. // Full docs on the "notify" API: https://docs.oramasearch.com/cloud/data-sources/custom-integrations/webhooks#updating-removing-inserting-elements-in-a-live-index const insertBatch = async batch => { - console.log(batch); await fetch(`${ORAMA_API_BASE_URL}/notify`, { method: 'POST', headers: oramaHeaders, @@ -45,8 +44,6 @@ const triggerDeployment = async () => { method: 'POST', headers: oramaHeaders, }); - - console.log('Deploy done'); }; // We call the "snapshot" API to empty the index before inserting the new documents. @@ -57,7 +54,7 @@ const emptyOramaIndex = async () => await fetch(`${ORAMA_API_BASE_URL}/snapshot`, { method: 'POST', headers: oramaHeaders, - body: '', + body: '[]', }); // Now we proceed to call the APIs in order: