From 65e7d24b7de33ea286e9238cc67e0969c3b30d8e Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 9 Sep 2023 19:07:50 -0400 Subject: [PATCH] Fix get branding by hash rong query --- src/routes/getBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index be8b4bb..23d220d 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -107,7 +107,7 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi const getSegments = () => db.prepare( "all", `SELECT "videoID", "startTime", "endTime", "videoDuration" FROM "sponsorTimes" - WHERE "votes" >= 0 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`, + WHERE "votes" > -2 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`, [`${videoHashPrefix}%`, service], { useReplica: true } ) as Promise;