Browse Source

fix: loop typo correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
feat/0523-export-schema
Raju Udava 3 years ago
parent
commit
9abf6e2e56
  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; nestedLinkCnt += insertData.length;
// Insert datas as chunks of size `ASSOC_BULK_DATA_BATCH_SIZE` // Insert datas as chunks of size `ASSOC_BULK_DATA_BATCH_SIZE`
for ( for (let i = 0; i < insertData.length; i += ASSOC_BULK_DATA_BATCH_SIZE) {
let i = 0;
i < insertData.length / ASSOC_BULK_DATA_BATCH_SIZE;
i += ASSOC_BULK_DATA_BATCH_SIZE
) {
logBasic( logBasic(
`:: Importing '${table.title}' LTAR data :: ${i + 1} - ${Math.min( `:: Importing '${table.title}' LTAR data :: ${i + 1} - ${Math.min(
i + ASSOC_BULK_DATA_BATCH_SIZE, i + ASSOC_BULK_DATA_BATCH_SIZE,
allData.length insertData.length
)}` )}`
); );
await api.dbTableRow.bulkCreate( await api.dbTableRow.bulkCreate(

Loading…
Cancel
Save