From 3b056533cb838fe4a280c00a502fc1bdb62483e0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 9 Nov 2023 01:37:23 +0530 Subject: [PATCH] fix: correction Signed-off-by: Pranav C --- packages/nocodb/src/db/BaseModelSqlv2.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index cfd1bafba8..f80e34bd92 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -2617,7 +2617,7 @@ class BaseModelSqlv2 { data: Record; insertObj: Record; }) { - const postInsertOps: ((rowId: any, trx?: any) => Promise)[] = []; + const postInsertOps: ((rowId: any, trx: any) => Promise)[] = []; for (const col of nestedCols) { if (col.title in data) { const colOptions = await col.getColOptions(); @@ -2650,7 +2650,7 @@ class BaseModelSqlv2 { async ( rowId, // todo: use transaction type - trx?: any = this.dbDriver, + trx: any = this.dbDriver, ) => { await trx(this.getTnPath(childModel.table_name)) .update({ @@ -2669,7 +2669,7 @@ class BaseModelSqlv2 { async ( rowId, // todo: use transaction type - trx?: any = this.dbDriver, + trx: any = this.dbDriver, ) => { const parentModel = await colOptions .getParentColumn()