mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
bind to regular function
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user