Updated dependencies and fixed coding styles

This commit is contained in:
Alejandro Celaya
2021-02-28 12:56:56 +01:00
parent fb2194d2d1
commit 47fb26368b
20 changed files with 3687 additions and 2136 deletions

View File

@@ -61,7 +61,7 @@ export const intervalToDateRange = (dateInterval?: DateInterval): DateRange => {
case 'today':
return { startDate: moment().startOf('day'), endDate: moment() };
case 'yesterday':
const yesterday = moment().subtract(1, 'day');
const yesterday = moment().subtract(1, 'day'); // eslint-disable-line no-case-declarations
return { startDate: yesterday.startOf('day'), endDate: yesterday.endOf('day') };
case 'last7Days':