@ -32,9 +32,12 @@ module.exports = function(User) {
async.waterfall([
function(next) {
db.getSortedSetRange('username:uid', 0, -1, next);
db.getSortedSetRangeWithScores('username:uid', 0, -1, next);
},
function(uids, next) {
function(users, next) {
var uids = users.map(function(user) {
return user.score;
});
User.getMultipleUserFields(uids, ['uid', 'email', 'username'], next);
function(usersData, next) {
@ -129,7 +129,7 @@
<div class="panel-heading">Users Control Panel</div>
<div class="panel-body">
<button id="createUser" class="btn btn-primary">New User</button>
<a target="_blank" href="{relative_path}/api/admin/users/csv" class="btn btn-primary">Download CSV</a>
<a target="_blank" href="{config.relative_path}/api/admin/users/csv" class="btn btn-primary">Download CSV</a>
</div>