formatting

This commit is contained in:
Ajay
2022-01-06 03:40:04 -05:00
parent 65954520d0
commit 68c6266139

View File

@@ -397,7 +397,7 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user
return { pass: false, errorMessage: `POI cannot be that early`, errorCode: 400 };
}
if (!isVIP && segments[i].category === "sponsor"
if (!isVIP && segments[i].category === "sponsor"
&& segments[i].actionType !== ActionType.Full && Math.abs(startTime - endTime) < 1) {
// Too short
return { pass: false, errorMessage: "Segments must be longer than 1 second long", errorCode: 400 };