Skip to content

Conversation

vittorio-reinaudo
Copy link
Contributor

little fix to do only one uniq

|> Enum.flat_map(&extract_path/1)
|> Enum.reject(&(is_nil(&1) or length(&1) == 0))
|> Enum.uniq()
|> Enum.uniq_by(fn [%{id: id} | _] -> id end)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do that here you're rejecting two filters on the same parameter link_owner.first_name and link_owner.last_name won't work in the same api call :C

@vittorio-reinaudo vittorio-reinaudo merged commit 96338c3 into fix/nested-filters Sep 8, 2025
@vittorio-reinaudo vittorio-reinaudo deleted the fix/nested-filters-proposal branch September 8, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants