We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6501787 commit 8166102Copy full SHA for 8166102
playgrounds/local-react/setup.mjs
@@ -22,11 +22,8 @@ await gamesIndex.updateSettings({
22
sortableAttributes: ['recommendationCount'],
23
})
24
25
-const moviesTask = await moviesIndex.addDocuments(movies)
26
-const gamesTask = await gamesIndex.addDocuments(games)
27
-
28
-await moviesTask.waitTask()
29
-await gamesTask.waitTask()
+const moviesTask = await moviesIndex.addDocuments(movies).waitTask()
+const gamesTask = await gamesIndex.addDocuments(games).waitTask()
30
31
console.log(moviesTask)
32
console.log(gamesTask)
0 commit comments