Browse Source

fix: oss bulk update missing transaction calls

nc-expand-rows
DarkPhoenix2704 1 month ago
parent
commit
5098f0db7a
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -5699,7 +5699,7 @@ class BaseModelSqlv2 {
trx?: any;
} = {},
) {
const transaction = trx ?? (await this.dbDriver.transaction());
let transaction;
try {
const columns = await this.model.getColumns(this.context);
@ -5710,6 +5710,8 @@ class BaseModelSqlv2 {
}
}
transaction = trx ?? (await this.dbDriver.transaction());
const updateDatas = raw
? datas
: await Promise.all(

Loading…
Cancel
Save