From d494c2305941e79b54f5ea7fe3cb0a32ba304416 Mon Sep 17 00:00:00 2001 From: "Michael M. Chang" Date: Sat, 28 Aug 2021 01:36:41 -0400 Subject: [PATCH] Update src/routes/postSkipSegments.ts Co-authored-by: Ajay Ramachandran --- src/routes/postSkipSegments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index 4b99d8b..a646fd0 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -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}; }