mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Fix missing function argument of getFilterQuery
In getEventMetrics no `column` argument is passed to getFilterQuery. Thus, the subsequent arguments are shifted by one. This leads to wrong API responses, since the filters are not properly applied. One option is to pass a null value as the `column` argument. However, it is not used in getFilterQuery. Therefore, I removed it.
This commit is contained in:
parent
0cb14f3f6c
commit
ce572f09f2
7 changed files with 14 additions and 35 deletions
|
|
@ -21,12 +21,7 @@ async function relationalQuery(
|
|||
) {
|
||||
const { getDateQuery, parseFilters, rawQuery } = prisma;
|
||||
const params = [website_id, start_at, end_at];
|
||||
const { pageviewQuery, sessionQuery, joinSession } = parseFilters(
|
||||
'pageview',
|
||||
null,
|
||||
filters,
|
||||
params,
|
||||
);
|
||||
const { pageviewQuery, sessionQuery, joinSession } = parseFilters('pageview', filters, params);
|
||||
|
||||
return rawQuery(
|
||||
`select ${getDateQuery('pageview.created_at', unit, timezone)} t,
|
||||
|
|
@ -56,7 +51,6 @@ async function clickhouseQuery(
|
|||
const params = [website_id];
|
||||
const { pageviewQuery, sessionQuery, joinSession } = parseFilters(
|
||||
'pageview',
|
||||
null,
|
||||
filters,
|
||||
params,
|
||||
sessionKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue