Fix linting errors
This commit is contained in:
parent
ef4a8d7ea1
commit
9671cd0687
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export function createUser(req, res, next) {
|
||||||
const EMAIL_VERIFY_TOKEN_EXPIRY_TIME = Date.now() + (3600000 * 24); // 24 hours
|
const EMAIL_VERIFY_TOKEN_EXPIRY_TIME = Date.now() + (3600000 * 24); // 24 hours
|
||||||
random((tokenError, token) => {
|
random((tokenError, token) => {
|
||||||
const user = new User({
|
const user = new User({
|
||||||
username: username,
|
username,
|
||||||
email: emailLowerCase,
|
email: emailLowerCase,
|
||||||
password,
|
password,
|
||||||
verified: User.EmailConfirmation.Sent,
|
verified: User.EmailConfirmation.Sent,
|
||||||
|
|
|
@ -147,7 +147,7 @@ userSchema.statics.findByMailOrName = function findByMailOrName(email) {
|
||||||
$or: [{
|
$or: [{
|
||||||
email: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
|
email: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
|
||||||
}, {
|
}, {
|
||||||
username: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
|
username: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
|
||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
return this.findOne(query).exec();
|
return this.findOne(query).exec();
|
||||||
|
|
Loading…
Reference in a new issue