Skip to content

Commit

Permalink
chore: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
tquocanvn committed May 14, 2024
1 parent e55e010 commit f60a877
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/orama-search/sync-orama-cloud.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit f60a877

Please sign in to comment.