mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
fixing index call and meta.js
This commit is contained in:
@@ -133,7 +133,7 @@ Sockets.init = function() {
|
||||
|
||||
socket.on('*', function(payload, callback) {
|
||||
function callMethod(method) {
|
||||
method.call(socket, args[0]?args[0]:null, function(err, result) {
|
||||
method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) {
|
||||
if(callback) {
|
||||
callback(err?{message:err.message}:null, result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user