From 0140d8e81affdc1433f9bec584991f6ecf4fa390 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 30 May 2022 12:25:22 +0530 Subject: [PATCH] fix: ignore attachments feat integration error Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts b/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts index 29860e8c90..ffbe417402 100644 --- a/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts +++ b/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts @@ -81,7 +81,6 @@ export default async ( const nestedRollupTbl: any[] = []; const ncSysFields = { id: 'ncRecordId', hash: 'ncRecordHash' }; const storeLinks = false; - const skipAttachments = false; const ncLinkDataStore: any = {}; const uniqueTableNameGen = getUniqueNameGenerator('sheet'); @@ -1315,7 +1314,7 @@ export default async ( break; case UITypes.Attachment: - if (skipAttachments) rec[key] = null; + if (syncDB.options.syncLookup) rec[key] = null; else { const tempArr = []; for (const v of value) {