Merge pull request #4223 from JLUpengjiaji/V1.0
Remove redundant search logic
This commit is contained in:
@@ -96,10 +96,6 @@ async function clickhouseQuery(websiteId: string, column: string, filters: Query
|
|||||||
excludeDomain = `and referrer_domain != hostname and referrer_domain != ''`;
|
excludeDomain = `and referrer_domain != hostname and referrer_domain != ''`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (search) {
|
|
||||||
searchQuery = `and positionCaseInsensitive(${column}, {search:String}) > 0`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (search) {
|
if (search) {
|
||||||
if (decodeURIComponent(search).includes(',')) {
|
if (decodeURIComponent(search).includes(',')) {
|
||||||
searchQuery = `AND (${decodeURIComponent(search)
|
searchQuery = `AND (${decodeURIComponent(search)
|
||||||
|
|||||||
Reference in New Issue
Block a user