exported function fetch with catch

This commit is contained in:
simplonco
2023-01-14 14:23:02 +01:00
parent 356e1caac3
commit d07b13b749
6 changed files with 70 additions and 103 deletions

View File

@@ -229,13 +229,6 @@ export class ChatController {
await this.chatService.setPasswordValidation(req.user.username, room);
}
await this.chatService.setCurrentRoom(req.user.username, room.name);
let socket: socketDto = this.chatGateway.sockets.get(req.user.username);
await this.chatService.socketChangeRoom(socket, room.name);
const ret_room = this.format_room(room);
res.status(HttpStatus.OK).json({ room: ret_room });
console.log("- out setPassword controller");
}