Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-09-22 11:22:16 +02:00
parent 246555a768
commit eaf424e79f
6 changed files with 18 additions and 10 deletions

View File

@@ -592,7 +592,12 @@ defmodule Mobilizon.Events do
"""
@spec list_participants_for_event(String.t(), list(atom()), integer | nil, integer | nil) ::
[Participant.t()]
def list_participants_for_event(uuid, roles \\ @default_participant_roles, page, limit) do
def list_participants_for_event(
uuid,
roles \\ @default_participant_roles,
page \\ nil,
limit \\ nil
) do
uuid
|> list_participants_for_event_query()
|> filter_role(roles)