From c098f6604934096dd2dbe5f7d679cae62758a24a Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 16 Jun 2023 11:44:43 +0800 Subject: [PATCH] fix(nocodb): cast papaparse.ParseStepResult data type as any temporarily --- .../src/modules/jobs/jobs/export-import/duplicate.processor.ts | 2 +- .../src/modules/jobs/jobs/export-import/import.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts index dc471803b8..03a49ffff6 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts @@ -315,7 +315,7 @@ export class DuplicateProcessor { step: async (results, parser) => { if (!headers.length) { parser.pause(); - for (const header of results.data) { + for (const header of results.data as any) { const id = idMap.get(header); if (id) { const col = await Column.get({ diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts index 08c75b8abe..ad4b83a82b 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts @@ -1254,7 +1254,7 @@ export class ImportService { step: async (results, parser) => { if (!headers.length) { parser.pause(); - for (const header of results.data) { + for (const header of results.data as any) { const id = idMap.get(header); if (id) { const col = await Column.get({