Browse Source

fix: get base data before starting the transaction

Signed-off-by: Pranav C <pranavxc@gmail.com>
test/reset-fail
Pranav C 2 years ago
parent
commit
6b43d47512
  1. 3
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -2633,9 +2633,10 @@ class BaseModelSqlv2 {
}
}
const base = await Base.get(this.model.base_id);
trx = await this.dbDriver.transaction();
const base = await Base.get(this.model.base_id);
// unlink LTAR data
if (base.is_meta) {
for (const execQuery of execQueries) {

Loading…
Cancel
Save