Fixed bug in lastDay
This commit is contained in:
parent
7f0f627512
commit
1887164501
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ class Queries {
|
|||
break
|
||||
case 'lastday':
|
||||
this.period = {
|
||||
$gte: moment().subtract('day').startOf('day'),
|
||||
$lte: moment().subtract('day').endOf('day')
|
||||
$gte: moment().subtract(1, 'day').startOf('day'),
|
||||
$lte: moment().subtract(1, 'day').endOf('day')
|
||||
}
|
||||
break
|
||||
case 'lastweek':
|
||||
|
|
Loading…
Reference in a new issue