Don't allow 0 ms submissions

This commit is contained in:
Ajay Ramachandran 2020-08-02 12:08:44 -04:00
parent d5a720fa0c
commit 2516634856

View file

@ -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;