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

Loading…
Cancel
Save