don't get it twice

This commit is contained in:
2020-09-20 18:24:22 +02:00
parent 08984480b1
commit b404bd5d85
2 changed files with 11 additions and 16 deletions

View File

@@ -8,8 +8,8 @@
function set(interval, amount = 1) {
return () => {
start = dj().subtract(amount, interval).toDate()
end = new Date()
start = dj().subtract(amount, interval).startOf('day').toDate()
end = dj().endOf('day').toDate()
}
}