From a659048afed3bec83dcf54c8c67a889e275d123a Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 2 Oct 2023 19:56:08 -0400 Subject: [PATCH] Hide downvotes titles --- 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 634c1e5..3013c40 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -26,7 +26,7 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service: "all", `SELECT "titles"."title", "titles"."original", "titleVotes"."votes", "titleVotes"."locked", "titleVotes"."shadowHidden", "titles"."UUID", "titles"."videoID", "titles"."hashedVideoID", "titleVotes"."verification", "titles"."userID" FROM "titles" JOIN "titleVotes" ON "titles"."UUID" = "titleVotes"."UUID" - WHERE "titles"."videoID" = ? AND "titles"."service" = ? AND "titleVotes"."votes" > -2`, + WHERE "titles"."videoID" = ? AND "titles"."service" = ? AND "titleVotes"."votes" > -1`, [videoID, service], { useReplica: true } ) as Promise;