From abfbba2ad0ff630a35913d446e116b93a152108c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 25 Jul 2019 16:56:06 -0400 Subject: [PATCH] Fixed server crash. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 4321bd4..1b49e3d 100644 --- a/index.js +++ b/index.js @@ -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