mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Refactored filter parameters.
This commit is contained in:
parent
1a839d1cae
commit
cff2d00536
13 changed files with 291 additions and 123 deletions
|
|
@ -61,8 +61,8 @@ function getDateFormat(date: Date) {
|
|||
return `'${dateFormat(date, 'UTC:yyyy-mm-dd HH:MM:ss')}'`;
|
||||
}
|
||||
|
||||
function mapFilter(column: string, filter: string, name: string, type: string = 'String') {
|
||||
switch (filter) {
|
||||
function mapFilter(column: string, operator: string, name: string, type: string = 'String') {
|
||||
switch (operator) {
|
||||
case OPERATORS.equals:
|
||||
return `${column} = {${name}:${type}}`;
|
||||
case OPERATORS.notEquals:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue