wip pbm join room return wrong room

This commit is contained in:
simplonco
2023-01-12 13:18:49 +01:00
parent 83aa46f80c
commit a605a4a09e
3 changed files with 15 additions and 10 deletions

View File

@@ -139,7 +139,7 @@ export class ChatController {
{
console.log("- in changeRoom controller");
const response = await this.chatService.setCurrentRoom(req.user.username, room.name);
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);
res.status(HttpStatus.OK).json({ room: room });