mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
fix getwebsiteevent search
This commit is contained in:
parent
7bc5635b9d
commit
db7d705767
1 changed files with 4 additions and 4 deletions
|
|
@ -44,8 +44,8 @@ async function relationalQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
${filterQuery}
|
${filterQuery}
|
||||||
${
|
${
|
||||||
query
|
query
|
||||||
? `and (event_name ${like} {{query}}
|
? `and ((event_name ${like} {{query}} and event_type = 2)
|
||||||
or url_path ${like} {{query}})`
|
or (url_path ${like} {{query}} and event_type = 1))`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
order by created_at desc
|
order by created_at desc
|
||||||
|
|
@ -84,8 +84,8 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
${filterQuery}
|
${filterQuery}
|
||||||
${
|
${
|
||||||
query
|
query
|
||||||
? `and (positionCaseInsensitive(event_name, {query:String}) > 0
|
? `and ((positionCaseInsensitive(event_name, {query:String}) > 0 and event_type = 2)
|
||||||
or positionCaseInsensitive(url_path, {query:String}) > 0)`
|
or (positionCaseInsensitive(url_path, {query:String}) > 0 and event_type = 1))`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
order by created_at desc
|
order by created_at desc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue