Skip to content

Commit 65e7d24

Browse files
committed
Fix get branding by hash rong query
1 parent d08c423 commit 65e7d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/getBranding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
107107
const getSegments = () => db.prepare(
108108
"all",
109109
`SELECT "videoID", "startTime", "endTime", "videoDuration" FROM "sponsorTimes"
110-
WHERE "votes" >= 0 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`,
110+
WHERE "votes" > -2 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`,
111111
[`${videoHashPrefix}%`, service],
112112
{ useReplica: true }
113113
) as Promise<BrandingSegmentHashDBResult[]>;

0 commit comments

Comments
 (0)