actually rvert those changes

This commit is contained in:
Francis Dinh 2018-05-17 23:56:47 -04:00
parent 8d11bae0d5
commit 6604bea9d0

View file

@ -404,22 +404,18 @@ defmodule Pleroma.User do
from(
u in User,
select_merge: %{
search_distance:
fragment(
"? <-> (? || ?)",
^query,
u.nickname,
u.name
)
}
search_distance: fragment(
"? <-> (? || ?)",
^query,
u.nickname,
u.name
)}
)
q =
from(
s in subquery(inner),
order_by: s.search_distance,
limit: 20
)
q = from(s in subquery(inner),
order_by: s.search_distance,
limit: 20
)
Repo.all(q)
end