Skip to content

Commit

Permalink
DOC: add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Jun 24, 2024
1 parent 1d2651b commit e2388d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function test() {
let i = 0,
count = 0
while (i++ < 200) {
User.create({name: `user${i}`, email: `user${i}@acme.com`}, {batch})
await User.create({name: `user${i}`, email: `user${i}@acme.com`}, {batch})
if (++count >= 25) {
await table.batchWrite(batch)
batch = {}
Expand Down

0 comments on commit e2388d5

Please sign in to comment.