From b2a54716c915dc0440f112ccdc27feb84ebc7775 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 9 Jul 2019 16:43:17 -0400 Subject: [PATCH] Fixed 404 check not properly working --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f16c59e..0a9cc58 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ app.get('/api/getVideoSponsorTimes', function (req, res) { sponsorTimes[i][1] = rows[i].endTime; } - if (sponsorTimes == []) { + if (sponsorTimes.length == 0) { res.sendStatus(404); } else { //send result