Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

add missing commits

Fendy Heryanto9b379b386e26
diff --git a/packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts b/packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts
index 6ff7556fa2..33a00800c3 100644
--- a/packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts
+++ b/packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts
@@ -2615,12 +2615,14 @@ export class AtImportProcessor {
source_id: syncDB.sourceId,
});
- // Populate existingTableNames array
- existingTableNames.push(
- ...existingModels.map((model) => model.table_name.toLowerCase()),
- );
+ // Populate unique table names array
+ for (const existingModel of existingModels) {
+ uniqueTableNameGen(existingModel.table_name);
+ }
- logDetailed(`Found ${existingTableNames.length} existing tables`);
+ // Populate existingTableTitles array
+ existingTableTitles.push(...existingModels.map((model) => model.title));
+ logDetailed(`Found ${existingTableTitles.length} existing tables`);
}
logBasic('Importing Tables...');