diff --git a/server/src/database/sqlite.ts b/server/src/database/sqlite.ts index 03361f2..c6b1d86 100644 --- a/server/src/database/sqlite.ts +++ b/server/src/database/sqlite.ts @@ -89,7 +89,7 @@ export class SQLiteAdapter extends Database { public async getUser(email: string): Promise { return new Promise((resolve, reject) => { db.get(`SELECT * FROM authentication WHERE email = ?`, [email], (err: any, row: any) => { - if (err) { + if (err || !row) { reject(err); console.log(`[database:sqlite] failed to get user ${email}`); } else {