From d648e554930eb08f9f6d7ac1f12e0e247b0ff1a7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 9 May 2018 13:09:28 -0400 Subject: [PATCH] closes #6494 --- src/controllers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/user.js b/src/controllers/user.js index 143b6131b7..f72eef27d3 100644 --- a/src/controllers/user.js +++ b/src/controllers/user.js @@ -228,7 +228,7 @@ userController.exportUploads = function (req, res, next) { userController.exportProfile = function (req, res, next) { 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) { Object.assign(objects[0], objects[1]); delete objects[0].password;