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
|
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':
|
||||||
|
|
Loading…
Reference in a new issue