forked from potsda.mn/mobilizon
Add distinct on suggested events
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ca9826e299
commit
4f1465e84d
|
@ -1698,6 +1698,7 @@ defmodule Mobilizon.Events do
|
|||
event_tags_ids = Enum.map(tags, & &1.id)
|
||||
|
||||
Event
|
||||
|> distinct([e], e.id)
|
||||
|> join(:left, [e], et in "events_tags", on: e.id == et.event_id)
|
||||
|> join(:left, [e], a in Address, on: e.physical_address_id == a.id)
|
||||
|> where(
|
||||
|
|
Loading…
Reference in a new issue