mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
minor cleanup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user