Browse Source

fix: correction in belongs to lookup filter query generation

re #1866

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1870/head
Pranav C 2 years ago
parent
commit
76a5bf26cf
  1. 2
      packages/nocodb/src/lib/dataMapper/lib/sql/conditionV2.ts

2
packages/nocodb/src/lib/dataMapper/lib/sql/conditionV2.ts

@ -349,7 +349,7 @@ async function generateLookupCondition(
};
} else if (relationColumnOptions.type === RelationTypes.BELONGS_TO) {
qb = knex(`${parentModel.table_name} as ${alias}`);
qb.select(`${alias}.${childColumn.column_name}`);
qb.select(`${alias}.${parentColumn.column_name}`);
await nestedConditionJoin(
{

Loading…
Cancel
Save