Fix bug when filtering for goal and session prop

This commit is contained in:
Uku Taht 2020-11-06 13:59:45 +02:00
parent 65befd751a
commit 039480a0d1

View File

@ -697,7 +697,7 @@ defmodule Plausible.Stats.Clickhouse do
none =
ClickhouseRepo.all(
from e in base_query_w_sessions(site, query),
where: fragment("not has(meta.key, ?)", ^key),
where: fragment("not has(?.key, ?)", e.meta, ^key),
select: %{
name: "(none)",
count: fragment("uniq(?) as count", e.user_id),