mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
clean-up event/event-data endpoints. fix for expanded view for mobile
This commit is contained in:
parent
9df012084d
commit
a2b1089e62
8 changed files with 47 additions and 21 deletions
|
|
@ -25,7 +25,10 @@ export async function getEventDataEvents(
|
|||
async function relationalQuery(websiteId: string, filters: QueryFilters) {
|
||||
const { rawQuery, parseFilters } = prisma;
|
||||
const { event } = filters;
|
||||
const { queryParams } = parseFilters(filters);
|
||||
const { queryParams } = parseFilters({
|
||||
...filters,
|
||||
websiteId,
|
||||
});
|
||||
|
||||
if (event) {
|
||||
return rawQuery(
|
||||
|
|
@ -75,7 +78,10 @@ async function clickhouseQuery(
|
|||
): Promise<{ eventName: string; propertyName: string; dataType: number; total: number }[]> {
|
||||
const { rawQuery, parseFilters } = clickhouse;
|
||||
const { event } = filters;
|
||||
const { queryParams } = parseFilters(filters);
|
||||
const { queryParams } = parseFilters({
|
||||
...filters,
|
||||
websiteId,
|
||||
});
|
||||
|
||||
if (event) {
|
||||
return rawQuery(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue