mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
add event data
This commit is contained in:
parent
67394194af
commit
75778fdfc7
22 changed files with 446 additions and 84 deletions
|
|
@ -65,8 +65,7 @@ function getCommaSeparatedStringFormat(data) {
|
|||
}
|
||||
|
||||
function getBetweenDates(field, start_at, end_at) {
|
||||
return `${field} between ${getDateFormat(start_at)}
|
||||
and ${getDateFormat(end_at)}`;
|
||||
return `${field} between ${getDateFormat(start_at)} and ${getDateFormat(end_at)}`;
|
||||
}
|
||||
|
||||
function getJsonField(column, property) {
|
||||
|
|
@ -81,7 +80,7 @@ function getEventDataColumnsQuery(column, columns) {
|
|||
return arr;
|
||||
}
|
||||
|
||||
arr.push(`${filter}(${getJsonField(column, key)})`);
|
||||
arr.push(`${filter}(${getJsonField(column, key)}) as ${key}_${filter}`);
|
||||
|
||||
return arr;
|
||||
}, []);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue