mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Revert session stats change.
This commit is contained in:
parent
8f934d2552
commit
60f1b7b755
@ -22,21 +22,14 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {
|
|||||||
return rawQuery(
|
return rawQuery(
|
||||||
`
|
`
|
||||||
select
|
select
|
||||||
${getDateSQL('g.created_at', unit, timezone)} as x,
|
${getDateSQL('website_event.created_at', unit, timezone)} x,
|
||||||
count(distinct g.session_id) as y
|
count(distinct website_event.session_id) y
|
||||||
from (
|
from website_event
|
||||||
select
|
|
||||||
website_event.session_id,
|
|
||||||
min(website_event.created_at) as created_at,
|
|
||||||
count(*) y
|
|
||||||
from website_event
|
|
||||||
${joinSession}
|
${joinSession}
|
||||||
where website_event.website_id = {{websiteId::uuid}}
|
where website_event.website_id = {{websiteId::uuid}}
|
||||||
and website_event.created_at between {{startDate}} and {{endDate}}
|
and website_event.created_at between {{startDate}} and {{endDate}}
|
||||||
and event_type = {{eventType}}
|
and event_type = {{eventType}}
|
||||||
${filterQuery}
|
${filterQuery}
|
||||||
group by website_event.session_id, website_event.created_at
|
|
||||||
) as g
|
|
||||||
group by 1
|
group by 1
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user