Browse Source

fix: proper use of xcCondition

pull/8367/head
Pranav C 5 months ago
parent
commit
90f2f3d106
  1. 11
      packages/nocodb/src/services/columns.service.ts

11
packages/nocodb/src/services/columns.service.ts

@ -2118,8 +2118,13 @@ export class ColumnsService {
);
});
if (!link) {
link = await ncMeta.metaGet2(null, null, MetaTable.COL_RELATIONS, {
xcCondition: {
link = await ncMeta.metaGet2(
null,
null,
MetaTable.COL_RELATIONS,
{},
null,
{
_or: [
{ fk_child_column_id: { eq: param.columnId } },
{ fk_parent_column_id: { eq: param.columnId } },
@ -2127,7 +2132,7 @@ export class ColumnsService {
{ fk_mm_parent_column_id: { eq: param.columnId } },
],
},
});
);
}
// if relation found then throw error

Loading…
Cancel
Save