From 39fcdb1d959c601f77247373efcea7b5e56f1ac8 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 21 May 2023 20:03:53 -0400 Subject: [PATCH] Allow more chapter names to appear in suggestions --- src/routes/getChapterNames.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getChapterNames.ts b/src/routes/getChapterNames.ts index af43dc2..c40030a 100644 --- a/src/routes/getChapterNames.ts +++ b/src/routes/getChapterNames.ts @@ -22,7 +22,7 @@ export async function getChapterNames(req: Request, res: Response): Promise 0 OR ("views" > 25 AND "votes" >= 0)) AND "videoID" IN ( + WHERE ("locked" = 1 OR "votes" >= 0) AND "videoID" IN ( SELECT "videoID" FROM "videoInfo" WHERE "channelID" = ?