|
|
@ -30,6 +30,7 @@ module.exports = function (SocketUser) {
|
|
|
|
uid: socket.uid,
|
|
|
|
uid: socket.uid,
|
|
|
|
targetUid: uid,
|
|
|
|
targetUid: uid,
|
|
|
|
ip: socket.ip,
|
|
|
|
ip: socket.ip,
|
|
|
|
|
|
|
|
reason: data.reason || undefined,
|
|
|
|
}, next);
|
|
|
|
}, next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
@ -38,6 +39,7 @@ module.exports = function (SocketUser) {
|
|
|
|
ip: socket.ip,
|
|
|
|
ip: socket.ip,
|
|
|
|
uid: uid,
|
|
|
|
uid: uid,
|
|
|
|
until: data.until > 0 ? data.until : undefined,
|
|
|
|
until: data.until > 0 ? data.until : undefined,
|
|
|
|
|
|
|
|
reason: data.reason || undefined,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
},
|
|
|
|
},
|
|
|
|