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);
|
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);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user