Apply filters correctly to suggestions

This commit is contained in:
Uku Taht 2021-08-18 12:33:08 +03:00
parent d9ac8ccdb9
commit 03e46d2ed5

View File

@ -535,7 +535,7 @@ defmodule PlausibleWeb.Api.StatsController do
def filter_suggestions(conn, params) do
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"]))
end