refactor: remove commented out code

This commit is contained in:
Barış Soner Uşaklı
2019-09-11 16:41:25 -04:00
parent b9105ef9c6
commit ec98945a5f

View File

@@ -30,9 +30,6 @@ module.exports = function (User) {
return userSettings; return userSettings;
}); });
return await Promise.all(settings.map(s => onSettingsLoaded(s.uid, s))); return await Promise.all(settings.map(s => onSettingsLoaded(s.uid, s)));
// async.map(settings, function (userSettings, next) {
// onSettingsLoaded(userSettings.uid, userSettings, next);
// }, next);
}; };
async function onSettingsLoaded(uid, settings) { async function onSettingsLoaded(uid, settings) {