mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
Fix column name for postgre
This commit is contained in:
@@ -62,7 +62,7 @@ export async function setUsername(req: Request, res: Response) {
|
||||
|
||||
try {
|
||||
//check if username is already set
|
||||
let row = await db.prepare('get', `SELECT userName FROM "userNames" WHERE "userID" = ? LIMIT 1`, [userID]);
|
||||
let row = await db.prepare('get', `SELECT "userName" FROM "userNames" WHERE "userID" = ? LIMIT 1`, [userID]);
|
||||
let oldUserName = '';
|
||||
|
||||
if (row.userName && row.userName.length !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user