Skip to content

Commit

Permalink
fix: correction in belongs to lookup filter query generation
Browse files Browse the repository at this point in the history
re #1866

Signed-off-by: Pranav C <pranavxc@gmail.com>
  • Loading branch information
pranavxc committed Apr 25, 2022
1 parent a6df48a commit 76a5bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nocodb/src/lib/dataMapper/lib/sql/conditionV2.ts
Expand Up @@ -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(
{
Expand Down

0 comments on commit 76a5bf2

Please sign in to comment.