minor cleanup

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

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

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

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

Loading…
Cancel
Save