Typo
This commit is contained in:
parent
02359d686c
commit
2d30fc279f
|
@ -9,7 +9,7 @@ Authentication is required and the user must be an admin.
|
|||
- Method `GET`
|
||||
- Params:
|
||||
- `query`: **string** *optional* search term
|
||||
- `only_local`: **bool** *optional* whether to return only local users
|
||||
- `local_only`: **bool** *optional* whether to return only local users
|
||||
- `page`: **integer** *optional* page number
|
||||
- `page_size`: **integer** *optional* number of users per page (default is `50`)
|
||||
- Response:
|
||||
|
|
|
@ -63,21 +63,6 @@ def untag_users(conn, %{"nicknames" => nicknames, "tags" => tags}) do
|
|||
do: json_response(conn, :no_content, "")
|
||||
end
|
||||
|
||||
# def list_users(conn, params) do
|
||||
# {page, page_size} = page_params(params)
|
||||
|
||||
# with {:ok, users, count} <- User.all_for_admin(page, page_size),
|
||||
# do:
|
||||
# conn
|
||||
# |> json(
|
||||
# AccountView.render("index.json",
|
||||
# users: users,
|
||||
# count: count,
|
||||
# page_size: page_size
|
||||
# )
|
||||
# )
|
||||
# end
|
||||
|
||||
def list_users(%{assigns: %{user: admin}} = conn, params) do
|
||||
{page, page_size} = page_params(params)
|
||||
|
||||
|
|
Loading…
Reference in New Issue