Node.js based forum software built for the modern web
fix: get uids directly for csv
Barış Soner Uşaklı39ee3980d640
diff --git a/src/user/admin.js b/src/user/admin.jsindex d545921bbe..df07189d52 100644--- a/src/user/admin.js+++ b/src/user/admin.js@@ -45,10 +45,10 @@ module.exports = function (User) {var uids;async.waterfall([function (next) {- db.getSortedSetRangeWithScores('username:uid', 0, -1, next);+ db.getSortedSetRange('users:joindate', 0, -1, next);},- function (users, next) {- uids = users.map(user => user.score);+ function (_uids, next) {+ uids = _uids;plugins.fireHook('filter:user.csvFields', { fields: ['uid', 'email', 'username'] }, next);},function (data, next) {