mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
update api to new CH columns
This commit is contained in:
parent
36edbe2f4c
commit
96add409b6
19 changed files with 74 additions and 48 deletions
|
|
@ -23,12 +23,12 @@ async function relationalQuery(website_id) {
|
|||
);
|
||||
}
|
||||
|
||||
async function clickhouseQuery(website_id) {
|
||||
async function clickhouseQuery(website_uuid) {
|
||||
const { rawQuery, getDateFormat } = clickhouse;
|
||||
const params = [website_id];
|
||||
const params = [website_uuid];
|
||||
|
||||
return rawQuery(
|
||||
`select count(distinct session_uuid) x
|
||||
`select count(distinct session_id) x
|
||||
from event
|
||||
where website_id = $1
|
||||
and created_at >= ${getDateFormat(subMinutes(new Date(), 5))}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue