removed most of the db.sortedSetCards

This commit is contained in:
barisusakli
2014-10-14 23:12:47 -04:00
parent 09bd42b9f6
commit 761f56aeb1
8 changed files with 25 additions and 20 deletions

View File

@@ -71,10 +71,6 @@ SocketCategories.getTopicCount = function(socket, cid, callback) {
categories.getCategoryField(cid, 'topic_count', callback);
};
SocketCategories.lastTopicIndex = function(socket, cid, callback) {
db.sortedSetCard('categories:' + cid + ':tid', callback);
};
SocketCategories.getUsersInCategory = function(socket, cid, callback) {
var uids = websockets.getUidsInRoom('category_' + cid);
user.getMultipleUserFields(uids, ['uid', 'userslug', 'username', 'picture'], callback);