mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
closes #666, the issue of the beast
This commit is contained in:
@@ -593,7 +593,9 @@ websockets.init = function(io) {
|
|||||||
|
|
||||||
socket.on('api:categories.get', function(callback) {
|
socket.on('api:categories.get', function(callback) {
|
||||||
categories.getAllCategories(0, function(err, categories) {
|
categories.getAllCategories(0, function(err, categories) {
|
||||||
|
if(callback) {
|
||||||
callback(categories);
|
callback(categories);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user