mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Convert /api/users.
This commit is contained in:
parent
090abcff81
commit
baa3851fb4
61 changed files with 1064 additions and 70 deletions
|
|
@ -15,7 +15,7 @@ async function relationalQuery(websiteId: string) {
|
|||
|
||||
const result = await rawQuery(
|
||||
`
|
||||
select count(distinct session_id) x
|
||||
select count(distinct session_id) as visitors
|
||||
from website_event
|
||||
where website_id = {{websiteId::uuid}}
|
||||
and created_at >= {{startDate}}
|
||||
|
|
@ -32,7 +32,7 @@ async function clickhouseQuery(websiteId: string): Promise<{ x: number }> {
|
|||
const result = await rawQuery(
|
||||
`
|
||||
select
|
||||
count(distinct session_id) x
|
||||
count(distinct session_id) as "visitors"
|
||||
from website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
and created_at >= {startDate:DateTime64}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue