mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-13 02:14:32 +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 {
|
try {
|
||||||
//check if username is already set
|
//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 = '';
|
let oldUserName = '';
|
||||||
|
|
||||||
if (row.userName && row.userName.length !== 0) {
|
if (row.userName && row.userName.length !== 0) {
|
||||||
|
|
Loading…
Reference in a new issue