Fix query.

pull/1739/head
Brian Cao 2023-01-12 12:28:17 -08:00
parent befc5cf6c0
commit e8b208744e
1 changed files with 4 additions and 4 deletions

View File

@ -32,14 +32,14 @@ async function relationalQuery(
filters: object;
},
) {
const { startDate, endDate, column, filters = {}, type } = data;
const { startDate, endDate, column, filters = {} } = data;
const { rawQuery, parseFilters, toUuid } = prisma;
const params: any = [
const params: any = {
websiteId,
startDate,
endDate,
type === 'event' ? EVENT_TYPE.customEvent : EVENT_TYPE.pageView,
];
type: EVENT_TYPE.pageView,
};
const { filterQuery, joinSession } = parseFilters(filters, params);
return rawQuery(