mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
combine logic
This commit is contained in:
parent
c73d07d329
commit
dd54fb3d2c
1 changed files with 0 additions and 8 deletions
|
|
@ -72,18 +72,10 @@ function getFilterQuery(column, filters = {}, params = []) {
|
|||
|
||||
switch (key) {
|
||||
case 'url':
|
||||
arr.push(`and ${key}=$${params.length + 1}`);
|
||||
params.push(decodeURIComponent(filter));
|
||||
break;
|
||||
|
||||
case 'os':
|
||||
case 'browser':
|
||||
case 'device':
|
||||
case 'country':
|
||||
arr.push(`and ${key}=$${params.length + 1}`);
|
||||
params.push(decodeURIComponent(filter));
|
||||
break;
|
||||
|
||||
case 'event_name':
|
||||
arr.push(`and ${key}=$${params.length + 1}`);
|
||||
params.push(decodeURIComponent(filter));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue