From 53c6aade153934daba4137aed557f4cffd21f542 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 29 Apr 2022 19:53:32 +0800 Subject: [PATCH] chore: mark it optional --- packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSqlv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSqlv2.ts index 5ec1d5afa8..1b5b04dff0 100644 --- a/packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSqlv2.ts @@ -1476,7 +1476,7 @@ class BaseModelSqlv2 { const response = await this.dbDriver .batchInsert(this.model.table_name, insertDatas, 50) - .returning(this.model.primaryKey.column_name); + .returning(this.model.primaryKey?.column_name); // await this.afterInsertb(insertDatas, null);