removed references to Reds user search

v1.18.x
Julian Lam 11 years ago
parent e542da1f52
commit b6aa31b245

@ -67,15 +67,9 @@ var DebugRoute = function(app) {
topics.reIndexAll(function (err) {
if (err) {
return res.json(err);
} else {
res.send('Topics and users reindexed');
}
user.reIndexAll(function (err) {
if (err) {
return res.json(err);
} else {
res.send('Topics and users reindexed');
}
});
});
});

@ -115,8 +115,6 @@ var bcrypt = require('bcrypt'),
db.sortedSetAdd('users:postcount', 0, uid);
db.sortedSetAdd('users:reputation', 0, uid);
db.searchIndex('user', username, uid);
// Join the "registered-users" meta group
groups.joinByGroupName('registered-users', uid);
@ -309,7 +307,6 @@ var bcrypt = require('bcrypt'),
db.deleteObjectField('username:uid', userData.username);
db.setObjectField('username:uid', data.username, uid);
events.logUsernameChange(uid, userData.username, data.username);
User.reIndexUser(uid, data.username);
}
if(userslug !== userData.userslug) {
@ -438,26 +435,6 @@ var bcrypt = require('bcrypt'),
});
};
User.reIndexAll = function(callback) {
User.getUsers('users:joindate', 0, -1, function(err, usersData) {
if (err) {
return callback(err, null);
}
for (var i = 0; i < usersData.length; ++i) {
User.reIndexUser(usersData[i].uid, usersData[i].username);
}
callback(null, 1);
});
};
User.reIndexUser = function(uid, username) {
db.searchRemove('user', uid, function() {
db.searchIndex('user', username, uid);
});
};
// thanks to @akhoury
User.getUsersCSV = function(callback) {
var csvContent = "";

Loading…
Cancel
Save