Fixed 404 check not properly working

This commit is contained in:
Ajay Ramachandran
2019-07-09 16:43:17 -04:00
parent 5cc5a7af0d
commit b2a54716c9

View File

@@ -37,7 +37,7 @@ app.get('/api/getVideoSponsorTimes', function (req, res) {
sponsorTimes[i][1] = rows[i].endTime; sponsorTimes[i][1] = rows[i].endTime;
} }
if (sponsorTimes == []) { if (sponsorTimes.length == 0) {
res.sendStatus(404); res.sendStatus(404);
} else { } else {
//send result //send result