File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export async function postBranding(req: Request, res: Response) {
120
120
? ( await db . prepare ( "get" , `SELECT "UUID" from "thumbnails" where "videoID" = ? AND "original" = 1` , [ videoID ] ) ) ?. UUID
121
121
: ( await db . prepare ( "get" , `SELECT "thumbnails"."UUID" from "thumbnailTimestamps" JOIN "thumbnails" ON "thumbnails"."UUID" = "thumbnailTimestamps"."UUID"
122
122
WHERE "thumbnailTimestamps"."timestamp" = ? AND "thumbnails"."videoID" = ?` , [ ( thumbnail as TimeThumbnailSubmission ) . timestamp , videoID ] ) ) ?. UUID ;
123
- const existingIsLocked = ! ! existingUUID && ( await db . prepare ( "get" , `SELECT "locked" from "titleVotes " where "UUID" = ?` , [ existingUUID ] ) ) ?. locked ;
123
+ const existingIsLocked = ! ! existingUUID && ( await db . prepare ( "get" , `SELECT "locked" from "thumbnailVotes " where "UUID" = ?` , [ existingUUID ] ) ) ?. locked ;
124
124
if ( existingUUID != undefined && isBanned ) return ; // ignore votes on existing details from banned users
125
125
if ( downvote && existingIsLocked && ! isVip ) {
126
126
errorCode = 403 ;
You can’t perform that action at this time.
0 commit comments