mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-30 19:38:28 +03:00
Fix unlocking all submissions
This commit is contained in:
@@ -63,7 +63,7 @@ export async function postBranding(req: Request, res: Response) {
|
|||||||
|
|
||||||
if (isVip) {
|
if (isVip) {
|
||||||
// unlock all other titles
|
// unlock all other titles
|
||||||
await db.prepare("run", `UPDATE "titleVotes" SET "locked" = 0 WHERE "UUID" != ?`, [UUID]);
|
await db.prepare("run", `UPDATE "titleVotes" SET "locked" = 0 WHERE "UUID" != ? AND "videoID" = ?`, [UUID, videoID]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})(), (async () => {
|
})(), (async () => {
|
||||||
@@ -91,7 +91,7 @@ export async function postBranding(req: Request, res: Response) {
|
|||||||
|
|
||||||
if (isVip) {
|
if (isVip) {
|
||||||
// unlock all other titles
|
// unlock all other titles
|
||||||
await db.prepare("run", `UPDATE "thumbnailVotes" SET "locked" = 0 WHERE "UUID" != ?`, [UUID]);
|
await db.prepare("run", `UPDATE "thumbnailVotes" SET "locked" = 0 WHERE "UUID" != ? AND "videoID" = ?`, [UUID, videoID]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user