Skip to content

Commit 22c49c9

Browse files
committed
Fix syntax
1 parent 4c3188a commit 22c49c9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

playgrounds/local-react/setup.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ await gamesIndex.updateSettings({
2222
sortableAttributes: ['recommendationCount'],
2323
})
2424

25-
const moviesTask = await moviesIndex.addDocuments(movies)
26-
const gamesTask = await gamesIndex.addDocuments(games)
27-
28-
await moviesTask.waitTask()
29-
await gamesTask.waitTask()
25+
const moviesTask = await moviesIndex.addDocuments(movies).waitTask()
26+
const gamesTask = await gamesIndex.addDocuments(games).waitTask()
3027

3128
console.log(moviesTask)
3229
console.log(gamesTask)

0 commit comments

Comments
 (0)