Fix test cases

This commit is contained in:
Nanobyte
2021-06-22 00:59:56 +02:00
parent fb87e180da
commit a005a961f9
9 changed files with 111 additions and 107 deletions

View File

@@ -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;
}