Fixed spelling errors (#29194)
This commit is contained in:
committed by
Stuart Taylor
parent
c825902b25
commit
1f44d4d17d
@ -258,7 +258,7 @@ module.exports = function(User) {
|
|||||||
// is update or save user
|
// is update or save user
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.do(user => {
|
.do(user => {
|
||||||
// Some old accounts will not have emails associated with theme
|
// Some old accounts will not have emails associated with them
|
||||||
// we verify only if the email field is populated
|
// we verify only if the email field is populated
|
||||||
if (user.email && !isEmail(user.email)) {
|
if (user.email && !isEmail(user.email)) {
|
||||||
throw createEmailError();
|
throw createEmailError();
|
||||||
@ -677,7 +677,7 @@ module.exports = function(User) {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return 'Something unexpected happened whilst updating your email.';
|
return 'Something unexpected happened while updating your email.';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -994,7 +994,7 @@ module.exports = function(User) {
|
|||||||
})
|
})
|
||||||
// filter out non objects
|
// filter out non objects
|
||||||
.filter(timestamp => !!timestamp || typeof timestamp === 'object')
|
.filter(timestamp => !!timestamp || typeof timestamp === 'object')
|
||||||
// filterout timestamps older then an hour
|
// filter out timestamps older than one hour
|
||||||
.filter(({ timestamp = 0 }) => {
|
.filter(({ timestamp = 0 }) => {
|
||||||
return timestamp >= browniePoints;
|
return timestamp >= browniePoints;
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user