mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
update CH event to website_event
This commit is contained in:
parent
05933ff1d2
commit
95ed8a09aa
12 changed files with 15 additions and 142 deletions
|
|
@ -35,7 +35,7 @@ async function clickhouseQuery({ id: sessionId }: { id: string }) {
|
|||
subdivision1,
|
||||
subdivision2,
|
||||
city
|
||||
from event
|
||||
from website_event
|
||||
where session_id = {sessionId:UUID}
|
||||
limit 1`,
|
||||
params,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ async function clickhouseQuery(
|
|||
|
||||
return rawQuery(
|
||||
`select ${field} x, count(distinct session_id) y
|
||||
from event as x
|
||||
from website_event as x
|
||||
where website_id = {websiteId:UUID}
|
||||
and event_type = ${EVENT_TYPE.pageView}
|
||||
and created_at >= ${getDateFormat(resetDate)}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ async function clickhouseQuery(websiteId: string, startAt: Date) {
|
|||
subdivision1,
|
||||
subdivision2,
|
||||
city
|
||||
from event
|
||||
from website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
and created_at >= {startAt:DateTime('UTC')}`,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue