Browse Source

fix: bulkUpdate missing transacting call

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

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

@ -5710,8 +5710,6 @@ class BaseModelSqlv2 {
}
}
transaction = trx ?? (await this.dbDriver.transaction());
const updateDatas = raw
? datas
: await Promise.all(
@ -5811,6 +5809,8 @@ class BaseModelSqlv2 {
}
}
transaction = trx ?? (await this.dbDriver.transaction());
for (const o of toBeUpdated) {
await transaction(this.tnPath).update(o.d).where(o.wherePk);
}

Loading…
Cancel
Save