wip pbm join room return wrong room
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user