From 3a5fac63eb36c7c47696afcf08ed5eafedce56a7 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 30 Oct 2023 19:31:26 -0500 Subject: [PATCH] Fixes chunk method not properly awaiting (#305) --- apps/platform/src/utilities/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/platform/src/utilities/index.ts b/apps/platform/src/utilities/index.ts index 7581e2c9..0ac94be6 100644 --- a/apps/platform/src/utilities/index.ts +++ b/apps/platform/src/utilities/index.ts @@ -217,7 +217,7 @@ export const chunk = async ( 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()