mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
fix getsessiondata props
This commit is contained in:
parent
28f15a9173
commit
d1b01370ef
1 changed files with 4 additions and 5 deletions
|
|
@ -25,13 +25,12 @@ async function relationalQuery(
|
||||||
`
|
`
|
||||||
select
|
select
|
||||||
data_key as "propertyName",
|
data_key as "propertyName",
|
||||||
count(*) as "total"
|
count(distinct d.session_id) as "total"
|
||||||
from website_event e
|
from website_event e
|
||||||
left join session_data d
|
join session_data d
|
||||||
on d.session_id = e.session_id
|
on d.session_id = e.session_id
|
||||||
where e.website_id = {{websiteId:uuid}}
|
where e.website_id = {{websiteId:uuid}}
|
||||||
and e.created_at between {{startDate}} and {{endDate}}
|
and e.created_at between {{startDate}} and {{endDate}}
|
||||||
and d.data_key is not null
|
|
||||||
${filterQuery}
|
${filterQuery}
|
||||||
group by 1
|
group by 1
|
||||||
order by 2 desc
|
order by 2 desc
|
||||||
|
|
@ -54,9 +53,9 @@ async function clickhouseQuery(
|
||||||
`
|
`
|
||||||
select
|
select
|
||||||
data_key as propertyName,
|
data_key as propertyName,
|
||||||
count(*) as total
|
count(distinct d.session_id) as total
|
||||||
from website_event e
|
from website_event e
|
||||||
left join session_data d
|
join session_data d final
|
||||||
on d.session_id = e.session_id
|
on d.session_id = e.session_id
|
||||||
where e.website_id = {websiteId:UUID}
|
where e.website_id = {websiteId:UUID}
|
||||||
and e.created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
and e.created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue