Fix duplicate events on homepage
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
32ff3cb69b
commit
e068326c4b
@ -356,7 +356,7 @@ defmodule Mobilizon.Events do
|
||||
direction \\ :asc,
|
||||
is_future \\ true
|
||||
) do
|
||||
query = from(e in Event, preload: [:organizer_actor, :participants])
|
||||
query = from(e in Event, distinct: true, preload: [:organizer_actor, :participants])
|
||||
|
||||
query
|
||||
|> sort(sort, direction)
|
||||
|
Loading…
Reference in New Issue
Block a user