Skip to content

Commit

Permalink
fix(core): respect upsertMany options when batching
Browse files Browse the repository at this point in the history
Closes #5209
  • Loading branch information
B4nan committed Feb 4, 2024
1 parent 6aa8e80 commit d6d1381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/EntityManager.ts
Expand Up @@ -1003,7 +1003,7 @@ export class EntityManager<Driver extends IDatabaseDriver = IDatabaseDriver> {

for (let i = 0; i < data.length; i += batchSize) {
const chunk = data.slice(i, i + batchSize);
ret.push(...await this.upsertMany(entityName, chunk));
ret.push(...await this.upsertMany(entityName, chunk, options));
}

return ret;
Expand Down

0 comments on commit d6d1381

Please sign in to comment.