|
|
@ -536,7 +536,7 @@ Upgrade.upgrade = function(callback) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!userData.picture || !userData.gravatarpicture) {
|
|
|
|
if (!userData.picture || !userData.gravatarpicture) {
|
|
|
|
return next();
|
|
|
|
return next();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -548,7 +548,7 @@ Upgrade.upgrade = function(callback) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
|
|
|
|
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
], next);
|
|
|
|
], next);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
|
|
|
|
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
|
|
|
|