Fixed problem with last timeslot crashing service.
This commit is contained in:
parent
3686064b1f
commit
1d046e3ce7
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ function breathingCurve(x, interval = 3000, min, max) {
|
||||||
function splitAtMidnight(arr) {
|
function splitAtMidnight(arr) {
|
||||||
let last = arr[arr.length -1];
|
let last = arr[arr.length -1];
|
||||||
arr.unshift({ ...last, start: 0});
|
arr.unshift({ ...last, start: 0});
|
||||||
arr[arr.length - 1].end = 0;
|
arr[arr.length - 1].end = 2400;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTime() {
|
function getTime() {
|
||||||
|
|
Loading…
Reference in a new issue