Skip to content

Commit

Permalink
Fix for filters inside relational collection
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed May 9, 2024
1 parent 0fc6afc commit 5a28241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/src/utils/apply-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,9 @@ export function applyFilter(

validateFilterOperator(type, filterOperator, special);

applyFilterToQuery(`${collection}.${filterPath[0]}`, filterOperator, filterValue, logical);
const aliasedCollection = aliasMap['']?.alias || collection;

applyFilterToQuery(`${aliasedCollection}.${filterPath[0]}`, filterOperator, filterValue, logical, collection);
}
}

Expand Down

0 comments on commit 5a28241

Please sign in to comment.