Typespec fixes and refactoring

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-05-03 12:23:09 +02:00
parent f6a17d8b3a
commit 999a33c7c3
10 changed files with 28 additions and 30 deletions

View File

@@ -848,7 +848,13 @@ defmodule Mobilizon.Actors do
@doc """
Returns a paginated list of members for a group.
"""
@spec list_members_for_group(Actor.t(), list(atom()), integer | nil, integer | nil) ::
@spec list_members_for_group(
Actor.t(),
String.t() | nil,
list(atom()),
integer | nil,
integer | nil
) ::
Page.t(Member.t())
def list_members_for_group(
%Actor{id: group_id, type: :Group},