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:
Thomas Citharel 2021-11-22 09:30:18 +01:00
parent 3fd79f89a8
commit c4d9101302
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -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)