mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-27 21:00:52 +03:00
Fix test cases
This commit is contained in:
@@ -24,7 +24,7 @@ async function addUsername(userID: string, userName: string, locked = 0) {
|
||||
}
|
||||
|
||||
async function getUsername(userID: string) {
|
||||
const row = await db.prepare('get', 'SELECT "userName" FROM "userNames" WHERE userID = ?', [userID]);
|
||||
const row = await db.prepare('get', 'SELECT "userName" FROM "userNames" WHERE "userID" = ?', [userID]);
|
||||
if (!row) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user