mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 02:09:52 +01:00
correct upgrade date
This commit is contained in:
@@ -1010,6 +1010,7 @@ Upgrade.upgrade = function(callback) {
|
||||
}
|
||||
},
|
||||
function(next) {
|
||||
thisSchemaDate = Date.UTC(2015, 4, 8);
|
||||
if (schemaDate < thisSchemaDate) {
|
||||
updatesMade = true;
|
||||
winston.info('[2015/05/08] Fixing emails');
|
||||
@@ -1019,6 +1020,7 @@ Upgrade.upgrade = function(callback) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
async.eachLimit(users, 100, function(user, next) {
|
||||
var newEmail = user.value.replace(/\uff0E/g, '.');
|
||||
if (newEmail === user.value) {
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user