Refactor a little bit

This commit is contained in:
Maxim Filippov 2019-03-01 21:17:20 +03:00
commit f635b675b2
2 changed files with 8 additions and 16 deletions

View file

@ -70,11 +70,11 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
do:
conn
|> json(
AccountView.render("index.json", %{
AccountView.render("index.json",
users: users,
count: count,
page_size: @users_page_size
})
)
)
end
@ -89,11 +89,11 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
conn
|> json(
AccountView.render("index.json", %{
AccountView.render("index.json",
users: users,
count: length(users),
page_size: @users_page_size
})
)
)
end