fix error with undefined callback

v1.18.x
Matthew Conlen 11 years ago
parent 8064f7f0db
commit a2a9c8fd8a

@ -120,7 +120,7 @@ SocketAdmin.categories.create = function(socket, data, callback) {
SocketAdmin.categories.update = function(socket, data) { SocketAdmin.categories.update = function(socket, data) {
if(!data) { if(!data) {
return callback(new Error('invalid data')); throw new Error('invalid data');
} }
admin.categories.update(data, socket); admin.categories.update(data, socket);
@ -380,4 +380,4 @@ SocketAdmin.groups.update = function(socket, data, callback) {
}); });
}; };
module.exports = SocketAdmin; module.exports = SocketAdmin;

Loading…
Cancel
Save