batchs -> batches

master
mjkhan21 5 months ago
parent b0e9421834
commit bccb777d25

@ -136,17 +136,17 @@ function getBatches(array, keymapper, size = 50) {
return result;
}, {}),
batch = [],
batchs = [];
batches = [];
for (let items of Object.values(byKey)) {
batch = batch.concat(items);
if (batch.length < size) continue;
batchs.push([].concat(batch));
batches.push([].concat(batch));
batch.splice(0);
}
if (batch.length > 0)
batchs.push(batch);
return batchs;
batches.push(batch);
return batches;
}
function upload(options) {

Loading…
Cancel
Save