Fixed bug in lastDay

This commit is contained in:
dbroqua 2020-01-13 11:58:05 +01:00
parent 7f0f627512
commit 1887164501

View file

@ -72,8 +72,8 @@ class Queries {
break break
case 'lastday': case 'lastday':
this.period = { this.period = {
$gte: moment().subtract('day').startOf('day'), $gte: moment().subtract(1, 'day').startOf('day'),
$lte: moment().subtract('day').endOf('day') $lte: moment().subtract(1, 'day').endOf('day')
} }
break break
case 'lastweek': case 'lastweek':