From 30e5da661d2ca18bbcdd6f7c36a473e6546ed5c3 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 23 Mar 2023 16:51:31 +0800 Subject: [PATCH] refactor(nocodb): remove duplicate code --- .../src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index 5d44e363c3..2d8e4b7d25 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -1560,9 +1560,6 @@ class BaseModelSqlv2 { await this.beforeInsert(insertObj, trx, cookie); } - // if ('beforeInsert' in this) { - // await this.beforeInsert(insertObj, trx, cookie); - // } await this.model.getColumns(); let response; // const driver = trx ? trx : this.dbDriver;