mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Fixed realtime chart rendering.
This commit is contained in:
parent
7a5f28870f
commit
92a513e4d0
5 changed files with 49 additions and 26 deletions
|
|
@ -18,6 +18,9 @@ function relationalQuery(websiteId: string, startDate: Date, eventType: number)
|
|||
gte: startDate,
|
||||
},
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'asc',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -39,6 +42,7 @@ function clickhouseQuery(websiteId: string, startDate: Date, eventType: number)
|
|||
where website_id = {websiteId:UUID}
|
||||
and created_at >= {startDate:DateTime64}
|
||||
and event_type = {eventType:UInt32}
|
||||
order by created_at asc
|
||||
`,
|
||||
{
|
||||
websiteId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue