Skip to content

armgit / umami

Public Imported from GitHub
0

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.

fix: 移除重复的搜索条件检查并修复搜索查询逻辑

JLUpengjiaji17a00f62a449
diff --git a/src/queries/sql/getValues.ts b/src/queries/sql/getValues.ts
index 8573335bf..cc5f3a489 100644
--- a/src/queries/sql/getValues.ts
+++ b/src/queries/sql/getValues.ts
@@ -83,10 +83,6 @@ async function clickhouseQuery(websiteId: string, column: string, filters: Query
excludeDomain = `and referrer_domain != hostname and referrer_domain != ''`;
}
- if (search) {
- searchQuery = `and positionCaseInsensitive(${column}, {search:String}) > 0`;
- }
-
if (search) {
if (decodeURIComponent(search).includes(',')) {
searchQuery = `AND (${decodeURIComponent(search)