Skip to content

Commit

Permalink
Fixes chunk method not properly awaiting (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Oct 31, 2023
1 parent 2e7d15f commit 3a5fac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/platform/src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const chunk = async <T>(
const chunker = new Chunker(callback, size)
await query.stream(async function(stream) {
for await (const result of stream) {
chunker.add(modifier(result))
await chunker.add(modifier(result))
}
})
await chunker.flush()
Expand Down

0 comments on commit 3a5fac6

Please sign in to comment.