Skip to content

Commit

Permalink
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 dde1d5d commit aa61745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/orama-search/sync-orama-cloud.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ 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 Down

0 comments on commit aa61745

Please sign in to comment.