Make second parameter to Mobilizon.FollowedGroupActivity.user_followed_group_events/4 default to nil
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3fd79f89a8
commit
c4d9101302
|
@ -14,7 +14,7 @@ defmodule Mobilizon.FollowedGroupActivity do
|
||||||
integer() | nil,
|
integer() | nil,
|
||||||
integer() | nil
|
integer() | nil
|
||||||
) :: Page.t(Event.t())
|
) :: Page.t(Event.t())
|
||||||
def user_followed_group_events(user_id, after_datetime, page \\ nil, limit \\ nil) do
|
def user_followed_group_events(user_id, after_datetime \\ nil, page \\ nil, limit \\ nil) do
|
||||||
Event
|
Event
|
||||||
|> distinct([e], e.id)
|
|> distinct([e], e.id)
|
||||||
|> join(:left, [e], p in Participant, on: e.id == p.event_id)
|
|> join(:left, [e], p in Participant, on: e.id == p.event_id)
|
||||||
|
|
Loading…
Reference in a new issue