Allow more chapter names to appear in suggestions

This commit is contained in:
Ajay 2023-05-21 20:03:53 -04:00
parent 8d1025e17d
commit 39fcdb1d95

View file

@ -22,7 +22,7 @@ export async function getChapterNames(req: Request, res: Response): Promise<Resp
const descriptions = await db.prepare("all", `
SELECT "description"
FROM "sponsorTimes"
WHERE ("locked" = 1 OR "votes" > 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" = ?