From f1453569145e2b4444e0f08fd7ac53fe078b69c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 7 Nov 2015 01:54:29 -0500 Subject: [PATCH] #3847 --- src/upgrade.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/upgrade.js b/src/upgrade.js index 65939936d0..ad31e95e8e 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -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);