This commit is contained in:
Julian Lam
2018-05-09 13:09:28 -04:00
parent f124ab667e
commit d648e55493

View File

@@ -228,7 +228,7 @@ userController.exportUploads = function (req, res, next) {
userController.exportProfile = function (req, res, next) { userController.exportProfile = function (req, res, next) {
async.waterfall([ async.waterfall([
async.apply(db.getObjects.bind(db), ['user:1', 'user:1:settings']), async.apply(db.getObjects.bind(db), ['user:' + req.params.uid, 'user:' + req.params.uid + ':settings']),
function (objects, next) { function (objects, next) {
Object.assign(objects[0], objects[1]); Object.assign(objects[0], objects[1]);
delete objects[0].password; delete objects[0].password;