mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	fix: get uids directly for csv
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user