correct upgrade date

This commit is contained in:
barisusakli
2015-05-08 16:14:48 -04:00
parent c6a05930aa
commit 74d6104072

View File

@@ -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();