Browse Source

fix: take care of undefined vars

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

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

@ -2759,7 +2759,7 @@ class BaseModelSqlv2 {
await this.afterUpdate(
prevData[0],
newData[0],
trx,
null,
cookie,
datas[0],
);
@ -2949,7 +2949,7 @@ class BaseModelSqlv2 {
await transaction.commit();
if (isSingleRecordDeletion) {
await this.afterDelete(deleted[0], trx, cookie);
await this.afterDelete(deleted[0], null, cookie);
} else {
await this.afterBulkDelete(deleted, this.dbDriver, cookie);
}

Loading…
Cancel
Save