mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Update minimum date.
This commit is contained in:
parent
476dd52875
commit
5c15778c9b
2 changed files with 1 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ export function getMinimumUnit(startDate, endDate) {
|
|||
return 'minute';
|
||||
} else if (differenceInHours(endDate, startDate) <= 48) {
|
||||
return 'hour';
|
||||
} else if (differenceInCalendarDays(endDate, startDate) <= 90) {
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 12) {
|
||||
return 'day';
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||
return 'month';
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ export default async (
|
|||
) => {
|
||||
await useCors(req, res);
|
||||
await useAuth(req, res);
|
||||
|
||||
await useValidate(schema, req, res);
|
||||
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue