Skip to content

Commit

Permalink
Fix query.
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao committed Jan 12, 2023
1 parent befc5cf commit e8b2087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions queries/analytics/pageview/getPageviewMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e8b2087

Please sign in to comment.