Added session data display.
This commit is contained in:
1 parent
f32bf0a2e0
commit
b3e6e52473
23 files changed
+239
-34
No files matched your search
@@ -42,7 +42,8 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||
subdivision1,
|
||||
city,
|
||||
min(created_at) as firstAt,
|
||||
max(created_at) as lastAt
|
||||
max(created_at) as lastAt,
|
||||
uniq(visit_id) as visits
|
||||
from website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
${dateQuery}
|
||||
@@ -52,5 +53,8 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||
`,
|
||||
params,
|
||||
pageParams,
|
||||
);
|
||||
).then((result: any) => ({
|
||||
...result,
|
||||
visits: Number(result.visits),
|
||||
}));
|
||||
}
|
||||
Reference in new issue
Block a user