mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-01 15:21:07 +03:00
Fixed 404 check not properly working
This commit is contained in:
2
index.js
2
index.js
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user