Browse Source

Merge pull request #4231 from nocodb/fix/at-import-existing-table

fix: try to fetch link data only for imported tables
pull/4297/merge
navi 2 years ago committed by GitHub
parent
commit
b42088ddbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

13
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -2236,14 +2236,14 @@ export default async (
const recordsMap = {};
for (let i = 0; i < ncTblList.list.length; i++) {
// not a migrated table, skip
if (undefined === aTblSchema.find((x) => x.name === ncTblList.list[i].title))
continue;
const _perfStart = recordPerfStart();
const ncTbl = await api.dbTable.read(ncTblList.list[i].id);
recordPerfStats(_perfStart, 'dbTable.read');
// not a migrated table, skip
if (undefined === aTblSchema.find((x) => x.name === ncTbl.title))
continue;
recordCnt = 0;
// await nocoReadData(syncDB, ncTbl);
@ -2264,7 +2264,12 @@ export default async (
logBasic('Configuring Record Links...');
for (let i = 0; i < ncTblList.list.length; i++) {
// not a migrated table, skip
if (undefined === aTblSchema.find((x) => x.name === ncTblList.list[i].title))
continue;
const ncTbl = await api.dbTable.read(ncTblList.list[i].id);
rtc.data.nestedLinks += await importLTARData({
table: ncTbl,
projectName: syncDB.projectName,

Loading…
Cancel
Save