mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00: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…
Reference in a new issue