Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
add referrer query inside undefine / ignore check
Francis Caofab818e7c207
diff --git a/lib/prisma.ts b/lib/prisma.tsindex d1b9d0e5d..e1e209d21 100644--- a/lib/prisma.ts+++ b/lib/prisma.ts@@ -72,14 +72,14 @@ function getFilterQuery(filters = {}): string {const filter = filters[key];if (filter !== undefined && !IGNORED_FILTERS.includes(key)) {- const column = FILTER_COLUMNS[key] || key;- arr.push(`and ${column}={{${key}}}`);- }-- if (key === 'referrer') {- arr.push(- 'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',- );+ if (key === 'referrer') {+ arr.push(+ 'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',+ );+ } else {+ const column = FILTER_COLUMNS[key] || key;+ arr.push(`and ${column}={{${key}}}`);+ }}return arr;