mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Fixed server crash.
This commit is contained in:
1
index.js
1
index.js
@@ -112,6 +112,7 @@ app.get('/api/postVideoSponsorTimes', function (req, res) {
|
|||||||
if (startTime > endTime) {
|
if (startTime > endTime) {
|
||||||
//time can't go backwards
|
//time can't go backwards
|
||||||
res.sendStatus(400);
|
res.sendStatus(400);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//this can just be a hash of the data
|
//this can just be a hash of the data
|
||||||
|
|||||||
Reference in New Issue
Block a user