mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
fix: get uids directly for csv
This commit is contained in:
@@ -45,10 +45,10 @@ module.exports = function (User) {
|
|||||||
var uids;
|
var uids;
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function (next) {
|
function (next) {
|
||||||
db.getSortedSetRangeWithScores('username:uid', 0, -1, next);
|
db.getSortedSetRange('users:joindate', 0, -1, next);
|
||||||
},
|
},
|
||||||
function (users, next) {
|
function (_uids, next) {
|
||||||
uids = users.map(user => user.score);
|
uids = _uids;
|
||||||
plugins.fireHook('filter:user.csvFields', { fields: ['uid', 'email', 'username'] }, next);
|
plugins.fireHook('filter:user.csvFields', { fields: ['uid', 'email', 'username'] }, next);
|
||||||
},
|
},
|
||||||
function (data, next) {
|
function (data, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user