Hide downvotes titles

This commit is contained in:
Ajay 2023-10-02 19:56:08 -04:00
parent 86ea0f582b
commit a659048afe

View file

@ -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<TitleDBResult[]>;