Browse Source

fix: one-to-one excluded list issue

pull/8367/head
Pranav C 4 months ago
parent
commit
fee1e9545a
  1. 13
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -2635,9 +2635,16 @@ class BaseModelSqlv2 {
).getModel(this.context);
const childView = await relColOptions.getChildView(this.context);
const childTn = this.getTnPath(childTable);
const parentTn = this.getTnPath(parentTable);
const parentBaseModel = await Model.getBaseModelSQL({
dbDriver: this.dbDriver,
model: parentTable,
});
const childBaseModel = await Model.getBaseModelSQL({
dbDriver: this.dbDriver,
model: childTable,
});
const childTn = childBaseModel.getTnPath(childTable);
const parentTn = parentBaseModel.getTnPath(parentTable);
const rtn = parentTn;
const tn = childTn;

Loading…
Cancel
Save