Fixed server crash.

This commit is contained in:
Ajay Ramachandran 2019-07-25 16:56:06 -04:00
parent 7e041e5b49
commit abfbba2ad0

View file

@ -112,6 +112,7 @@ app.get('/api/postVideoSponsorTimes', function (req, res) {
if (startTime > endTime) {
//time can't go backwards
res.sendStatus(400);
return;
}
//this can just be a hash of the data