Update src/routes/postSkipSegments.ts

Co-authored-by: Ajay Ramachandran <dev@ajay.app>
This commit is contained in:
Michael M. Chang
2021-08-28 01:36:41 -04:00
committed by GitHub
parent c448bb3d9a
commit d494c23059

View File

@@ -382,7 +382,7 @@ async function checkEachSegmentValid(userID: string, videoID: VideoID
}
// Check for POI segments before 1 second
if (segments[i].category === CategoryActionType.POI && startTime < 1) {
if (getCategoryActionType(segments[i].category) === CategoryActionType.POI && startTime < 1) {
return { pass: false, errorMessage: "POI must be after 1 second", errorCode: 400};
}