Browse Source

fix: loop typo correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2218/head
Raju Udava 3 years ago committed by Pranav C
parent
commit
fa2fa9c079
  1. 8
      packages/nocodb/src/lib/noco/meta/api/sync/helpers/readAndProcessData.ts

8
packages/nocodb/src/lib/noco/meta/api/sync/helpers/readAndProcessData.ts

@ -216,15 +216,11 @@ export async function importLTARData({
nestedLinkCnt += insertData.length;
// Insert datas as chunks of size `ASSOC_BULK_DATA_BATCH_SIZE`
for (
let i = 0;
i < insertData.length / ASSOC_BULK_DATA_BATCH_SIZE;
i += ASSOC_BULK_DATA_BATCH_SIZE
) {
for (let i = 0; i < insertData.length; i += ASSOC_BULK_DATA_BATCH_SIZE) {
logBasic(
`:: Importing '${table.title}' LTAR data :: ${i + 1} - ${Math.min(
i + ASSOC_BULK_DATA_BATCH_SIZE,
allData.length
insertData.length
)}`
);
await api.dbTableRow.bulkCreate(

Loading…
Cancel
Save