Skip to content

Commit

Permalink
Change chunk call in data.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ronitagarwala01 committed Nov 21, 2023
1 parent ae8f394 commit 76aa827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})
Expand Down

0 comments on commit 76aa827

Please sign in to comment.