Update minimum date.
This commit is contained in:
@@ -248,7 +248,7 @@ export function getMinimumUnit(startDate, endDate) {
|
|||||||
return 'minute';
|
return 'minute';
|
||||||
} else if (differenceInHours(endDate, startDate) <= 48) {
|
} else if (differenceInHours(endDate, startDate) <= 48) {
|
||||||
return 'hour';
|
return 'hour';
|
||||||
} else if (differenceInCalendarDays(endDate, startDate) <= 90) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 12) {
|
||||||
return 'day';
|
return 'day';
|
||||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||||
return 'month';
|
return 'month';
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export default async (
|
|||||||
) => {
|
) => {
|
||||||
await useCors(req, res);
|
await useCors(req, res);
|
||||||
await useAuth(req, res);
|
await useAuth(req, res);
|
||||||
|
|
||||||
await useValidate(schema, req, res);
|
await useValidate(schema, req, res);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in New Issue
Block a user