mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
fix event type queries for pixels/links. remove hardcoded event types
This commit is contained in:
parent
f86c21b25b
commit
1809959b99
14 changed files with 42 additions and 51 deletions
|
|
@ -157,12 +157,7 @@ export function parseDateRange(value: string, locale = 'en-US'): DateRange {
|
|||
|
||||
const now = new Date();
|
||||
const dateLocale = getDateLocale(locale);
|
||||
const { unit } = parseDateValue(value);
|
||||
let { num = 1 } = parseDateValue(value);
|
||||
|
||||
if (value === '7day') {
|
||||
num--;
|
||||
}
|
||||
const { num = 1, unit } = parseDateValue(value);
|
||||
|
||||
switch (unit) {
|
||||
case 'hour':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue