Skip to content

Commit

Permalink
Fix active product query
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 26, 2024
1 parent 06fe57d commit cc14cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/polar/streams/product.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ defmodule Polar.Streams.Product do
from(
p in queryable,
join: v in assoc(p, :active_versions),
where: not is_nil(v.product_id)
where: not is_nil(v.product_id),
group_by: [:id]
)
end

Expand Down

0 comments on commit cc14cd0

Please sign in to comment.