minor cleanup

v1.18.x
barisusakli 11 years ago
parent b413f06b72
commit 71f84655ca

@ -304,7 +304,7 @@ var db = require('./database'),
} }
callback(null, categories); callback(null, categories);
}); });
} };
Categories.getCategoryField = function(cid, field, callback) { Categories.getCategoryField = function(cid, field, callback) {
db.getObjectField('category:' + cid, field, callback); db.getObjectField('category:' + cid, field, callback);

@ -223,7 +223,7 @@
module.getObjectFields = function(key, fields, callback) { module.getObjectFields = function(key, fields, callback) {
redisClient.hmget(key, fields, function(err, data) { redisClient.hmget(key, fields, function(err, data) {
if(err) { if(err) {
return callback(err, null); return callback(err);
} }
var returnData = {}; var returnData = {};

@ -261,9 +261,7 @@ SocketTopics.loadMore = function(socket, data, callback) {
privileges: function(next) { privileges: function(next) {
threadTools.privileges(data.tid, socket.uid, next); threadTools.privileges(data.tid, socket.uid, next);
} }
}, function(err, results) { }, callback);
callback(err, results);
});
}); });
}; };

Loading…
Cancel
Save