mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix column name for postgre
This commit is contained in:
parent
f5bb221ecd
commit
f3542b7402
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue