mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-29 01:07:55 +02:00
combine logic
This commit is contained in:
parent
c73d07d329
commit
dd54fb3d2c
|
@ -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 New Issue
Block a user