Barış Soner Uşaklı 9 years ago
parent 7d03e9ae6b
commit f145356914

@ -543,8 +543,12 @@ Upgrade.upgrade = function(callback) {
if (userData.gravatarpicture === userData.picture) {
async.series([
async.apply(db.setObjectField, 'user:' + uid, 'picture', ''),
async.apply(db.deleteObjectField, 'user:' + uid, 'gravatarpicture')
function (next) {
db.setObjectField('user:' + uid, 'picture', '', next);
},
function (next) {
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
}
], next);
} else {
db.deleteObjectField('user:' + uid, 'gravatarpicture', next);

Loading…
Cancel
Save