1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

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
) :: 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
|> distinct([e], e.id)
|> join(:left, [e], p in Participant, on: e.id == p.event_id)