diff --git a/src/upgrade.js b/src/upgrade.js index 690b3465ee..0ab9984646 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -363,7 +363,7 @@ Upgrade.upgrade = function (callback) { newSettings[key] = map[settings[key]] || ''; } }); - + if (Object.keys(newSettings).length) { db.setObject('user:' + uid + ':settings', newSettings, next); } else {