bind to regular function

This commit is contained in:
barisusakli
2016-08-12 02:09:11 +03:00
parent bc255110cc
commit b5bf2737e4

View File

@@ -16,7 +16,9 @@ module.exports = function(SocketUser) {
}
}
toggleBan(socket.uid, data.uids, banUser.bind(null, data.until || 0), function(err) {
toggleBan(socket.uid, data.uids, function(uid, next) {
banUser(data.until || 0, uid, next);
}, function(err) {
if (err) {
return callback(err);
}