mirror of
https://github.com/cupcakearmy/ora.git
synced 2026-04-02 12:05:23 +00:00
don't get it twice
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user