mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
only use hourly table, remove daily table logic, fix updatechart undefined
This commit is contained in:
parent
038ecdb592
commit
174b9e4376
10 changed files with 38 additions and 166 deletions
|
|
@ -51,8 +51,6 @@ async function clickhouseQuery(
|
|||
eventType: EVENT_TYPE.customEvent,
|
||||
});
|
||||
|
||||
const table = unit === 'hour' ? 'website_event_stats_hourly' : 'website_event_stats_daily';
|
||||
|
||||
return rawQuery(
|
||||
`
|
||||
select
|
||||
|
|
@ -62,7 +60,7 @@ async function clickhouseQuery(
|
|||
from (
|
||||
select arrayJoin(event_name) as event_name,
|
||||
created_at
|
||||
from ${table} website_event
|
||||
from website_event_stats_hourly website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
||||
and event_type = {eventType:UInt32}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue