From 05f38948bbd85576abf67aea8c81a3112b2a75fc Mon Sep 17 00:00:00 2001 From: G Date: Sun, 8 Sep 2024 01:22:38 +0330 Subject: [PATCH] optimising the tickets --- src/features/gateway/gatway.controller.ts | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/features/gateway/gatway.controller.ts b/src/features/gateway/gatway.controller.ts index 8d11cb33a..367243daa 100644 --- a/src/features/gateway/gatway.controller.ts +++ b/src/features/gateway/gatway.controller.ts @@ -250,20 +250,20 @@ export class GateWayController implements OnModuleInit { } } - @UseFilters(new BadRequestTransformationFilter()) - @UsePipes(new ValidationPipe()) - @SubscribeMessage('leave:room') - async onLeaveRoom( - @MessageBody(ValidateGatewayPipe) body: CreateJoinRoomDto, - @ConnectedSocket() client: Socket, - ) { - if (this.socket.connected) { - const { ticket } = await this.ticketService.getTicketById( - body.ticketId, - body.flaskUserId, - ); - console.log('\x1b[36m%s\x1b[0m', `leaving room:${ticket.id}...\n`); - client.leave(`room:${ticket.id}`); - } - } + // @UseFilters(new BadRequestTransformationFilter()) + // @UsePipes(new ValidationPipe()) + // @SubscribeMessage('leave:room') + // async onLeaveRoom( + // @MessageBody(ValidateGatewayPipe) body: CreateJoinRoomDto, + // @ConnectedSocket() client: Socket, + // ) { + // if (this.socket.connected) { + // const { ticket } = await this.ticketService.getTicketById( + // body.ticketId, + // body.flaskUserId, + // ); + // console.log('\x1b[36m%s\x1b[0m', `leaving room:${ticket.id}...\n`); + // client.leave(`room:${ticket.id}`); + // } + // } }