Skip to content

Commit 9671cd0

Browse files
committed
Fix linting errors
1 parent ef4a8d7 commit 9671cd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/controllers/user.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createUser(req, res, next) {
4646
const EMAIL_VERIFY_TOKEN_EXPIRY_TIME = Date.now() + (3600000 * 24); // 24 hours
4747
random((tokenError, token) => {
4848
const user = new User({
49-
username: username,
49+
username,
5050
email: emailLowerCase,
5151
password,
5252
verified: User.EmailConfirmation.Sent,

server/models/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ userSchema.statics.findByMailOrName = function findByMailOrName(email) {
147147
$or: [{
148148
email: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
149149
}, {
150-
username: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
150+
username: new RegExp(`^${escapeStringRegexp(email)}$`, 'i'),
151151
}],
152152
};
153153
return this.findOne(query).exec();

0 commit comments

Comments
 (0)