Use strict equals

This commit is contained in:
Ajay Ramachandran
2021-07-15 14:03:30 -04:00
parent 27f406f757
commit 83a77dfc74

View File

@@ -62,7 +62,7 @@ export async function setUsername(req: Request, res: Response): Promise<Response
const locked = adminUserIDInput === undefined ? 0 : 1;
let oldUserName = '';
if (row?.userName != undefined) {
if (row?.userName !== undefined) {
//already exists, update this row
oldUserName = row.userName;
await db.prepare('run', `UPDATE "userNames" SET "userName" = ?, "locked" = ? WHERE "userID" = ?`, [userName, locked, userID]);