mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +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) {
|
switch (key) {
|
||||||
case 'url':
|
case 'url':
|
||||||
arr.push(`and ${key}=$${params.length + 1}`);
|
|
||||||
params.push(decodeURIComponent(filter));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'os':
|
case 'os':
|
||||||
case 'browser':
|
case 'browser':
|
||||||
case 'device':
|
case 'device':
|
||||||
case 'country':
|
case 'country':
|
||||||
arr.push(`and ${key}=$${params.length + 1}`);
|
|
||||||
params.push(decodeURIComponent(filter));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'event_name':
|
case 'event_name':
|
||||||
arr.push(`and ${key}=$${params.length + 1}`);
|
arr.push(`and ${key}=$${params.length + 1}`);
|
||||||
params.push(decodeURIComponent(filter));
|
params.push(decodeURIComponent(filter));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue