mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 06:27:10 +03:00
Finish up conversion to use case-sensitive column names
This commit is contained in:
@@ -27,7 +27,7 @@ export async function addUserAsVIP(req: Request, res: Response) {
|
||||
}
|
||||
|
||||
//check to see if this user is already a vip
|
||||
const row = await db.prepare('get', 'SELECT count(*) as "userCount" FROM vipUsers WHERE userID = ?', [userID]);
|
||||
const row = await db.prepare('get', 'SELECT count(*) as "userCount" FROM "vipUsers" WHERE "userID" = ?', [userID]);
|
||||
|
||||
if (enabled && row.userCount == 0) {
|
||||
//add them to the vip list
|
||||
|
||||
Reference in New Issue
Block a user