mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fixed 404 check not properly working
This commit is contained in:
parent
5cc5a7af0d
commit
b2a54716c9
1 changed files with 1 additions and 1 deletions
2
index.js
2
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
|
||||
|
|
Loading…
Reference in a new issue