Browse Source

fix: correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6817/head
Pranav C 1 year ago
parent
commit
3b056533cb
  1. 6
      packages/nocodb/src/db/BaseModelSqlv2.ts

6
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -2617,7 +2617,7 @@ class BaseModelSqlv2 {
data: Record<string, any>;
insertObj: Record<string, any>;
}) {
const postInsertOps: ((rowId: any, trx?: any) => Promise<void>)[] = [];
const postInsertOps: ((rowId: any, trx: any) => Promise<void>)[] = [];
for (const col of nestedCols) {
if (col.title in data) {
const colOptions = await col.getColOptions<LinkToAnotherRecordColumn>();
@ -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()

Loading…
Cancel
Save