pagination fix for service users filters

This commit is contained in:
Alexander Strizhakov 2020-05-01 14:31:24 +03:00
commit ecf37b46d2
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 49 additions and 30 deletions

View file

@ -21,6 +21,7 @@ defmodule Pleroma.Web.AdminAPI.Search do
query =
params
|> Map.drop([:page, :page_size])
|> Map.put(:exclude_service_users, true)
|> User.Query.build()
|> order_by([u], u.nickname)