eslint fix
This commit is contained in:
parent
8d1d6fc8dc
commit
565ce6b70b
@ -79,16 +79,21 @@ export class IoSocketController {
|
||||
if(message.event === 'user-message') {
|
||||
const messageToEmit = (message.message as { message: string, type: string, userUuid: string });
|
||||
switch (message.message.type) {
|
||||
case 'ban':
|
||||
case 'ban': {
|
||||
socketManager.emitSendUserMessage(messageToEmit);
|
||||
break;
|
||||
case 'banned':
|
||||
}
|
||||
case 'banned': {
|
||||
const socketUser = socketManager.emitSendUserMessage(messageToEmit);
|
||||
setTimeout(() => {
|
||||
socketUser.close();
|
||||
}, 10000);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (err) {
|
||||
console.error(err);
|
||||
@ -233,7 +238,7 @@ export class IoSocketController {
|
||||
return;
|
||||
}
|
||||
res.messages.forEach((c: unknown) => {
|
||||
let messageToSend = c as { type: string, message: string };
|
||||
const messageToSend = c as { type: string, message: string };
|
||||
socketManager.emitSendUserMessage({
|
||||
userUuid: client.userUuid,
|
||||
type: messageToSend.type,
|
||||
|
Loading…
Reference in New Issue
Block a user