mirror of
https://github.com/plausible/analytics.git
synced 2024-12-29 04:22:34 +03:00
Apply filters correctly to suggestions
This commit is contained in:
parent
d9ac8ccdb9
commit
03e46d2ed5
@ -535,7 +535,7 @@ defmodule PlausibleWeb.Api.StatsController do
|
|||||||
|
|
||||||
def filter_suggestions(conn, params) do
|
def filter_suggestions(conn, params) do
|
||||||
site = conn.assigns[:site]
|
site = conn.assigns[:site]
|
||||||
query = Query.from(site.timezone, params)
|
query = Query.from(site.timezone, params) |> Filters.add_prefix()
|
||||||
|
|
||||||
json(conn, Stats.filter_suggestions(site, query, params["filter_name"], params["q"]))
|
json(conn, Stats.filter_suggestions(site, query, params["filter_name"], params["q"]))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user