From 76aa8278377ecb6c9dd3413a34905a63de25ba3d Mon Sep 17 00:00:00 2001 From: Ronit Agarwala Date: Tue, 21 Nov 2023 14:49:02 -0500 Subject: [PATCH] Change chunk call in data.ts --- data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.ts b/data.ts index 215e4ea..d6324e6 100644 --- a/data.ts +++ b/data.ts @@ -46,7 +46,7 @@ export async function populate(path: string, opts: ClientOptions) { if (data) { const client = new Client(opts) const batch_size = 10 - const batches = _.chunk(data, batch_size) + const batches = chunk(data, batch_size) batches.forEach(async (batch: object[]) => { await client.bulk({ body: batch }) })