Fixed problem with last timeslot crashing service.

This commit is contained in:
John Shaver 2018-12-12 19:29:47 -08:00
parent 3686064b1f
commit 1d046e3ce7

View file

@ -71,7 +71,7 @@ function breathingCurve(x, interval = 3000, min, max) {
function splitAtMidnight(arr) {
let last = arr[arr.length -1];
arr.unshift({ ...last, start: 0});
arr[arr.length - 1].end = 0;
arr[arr.length - 1].end = 2400;
}
function getTime() {