add check for missing user
This commit is contained in:
@@ -89,7 +89,7 @@ export class SQLiteAdapter extends Database {
|
||||
public async getUser(email: string): Promise<any> {
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user