diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index acecbc2..2aac4ea 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -148,7 +148,7 @@ module.exports = async function postSkipSegments(req, res) { let endTime = parseFloat(segments[i].segment[1]); if (isNaN(startTime) || isNaN(endTime) - || startTime === Infinity || endTime === Infinity || startTime < 0 || startTime > endTime) { + || startTime === Infinity || endTime === Infinity || startTime < 0 || startTime >= endTime) { //invalid request res.sendStatus(400); return;