fix set call

This commit is contained in:
Barış Soner Uşaklı
2017-03-01 17:47:59 +02:00
committed by GitHub
parent c5f40e3cf5
commit fecdbc969f

View File

@@ -365,7 +365,7 @@ Upgrade.upgrade = function (callback) {
});
if (Object.keys(newSettings).length) {
user.saveSettings(uid, settings, next);
db.setObject('user:' + uid + ':settings', newSettings, next);
} else {
setImmediate(next);
}