Browse Source

fix: do the LTAR unlink only if it's metadb project

Signed-off-by: Pranav C <pranavxc@gmail.com>
test/reset-fail
Pranav C 1 year ago
parent
commit
a7014aef5e
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -2454,6 +2454,8 @@ class BaseModelSqlv2 {
const execQueries: ((trx: Transaction, ids: any[]) => Promise<any>)[] =
[];
const base = await Base.get(this.model.base_id);
for (const column of this.model.columns) {
if (column.uidt !== UITypes.LinkToAnotherRecord) continue;
@ -2508,7 +2510,7 @@ class BaseModelSqlv2 {
transaction = await this.dbDriver.transaction();
if (execQueries.length > 0) {
if (base.is_meta && execQueries.length > 0) {
for (const execQuery of execQueries) {
await execQuery(transaction, idsVals);
}

Loading…
Cancel
Save