1
0
Fork 0
refactor/models
Matthew 2019-11-16 23:29:36 -05:00
parent 747a9a7ae5
commit e44da74a0f
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ export default class Security {
const account = await this.client.db.Account.findOne({ username: json.username }); const account = await this.client.db.Account.findOne({ username: json.username });
if (account._id !== saltCheck._id) return null; if (account._id !== saltCheck._id) return null;
return account; return account;
} catch { } catch (error) {
this.client.signale.debug(error);
return null; return null;
} }
} }