forked from AkkomaGang/akkoma
Format
This commit is contained in:
parent
ed8a2935f5
commit
7ac9fff437
1 changed files with 1 additions and 0 deletions
|
@ -802,6 +802,7 @@ def search_for_admin(%{
|
||||||
|
|
||||||
search_query = from(u in maybe_local_query, where: ilike(u.nickname, ^"%#{term}%"))
|
search_query = from(u in maybe_local_query, where: ilike(u.nickname, ^"%#{term}%"))
|
||||||
count = search_query |> Repo.aggregate(:count, :id)
|
count = search_query |> Repo.aggregate(:count, :id)
|
||||||
|
|
||||||
results =
|
results =
|
||||||
search_query
|
search_query
|
||||||
|> paginate(page, page_size)
|
|> paginate(page, page_size)
|
||||||
|
|
Loading…
Reference in a new issue