From 15e37190687eaef39c28c01acae0a5c209cc5629 Mon Sep 17 00:00:00 2001 From: Pheuw1 Date: Wed, 15 Mar 2023 21:47:05 +0100 Subject: [PATCH] front --- back/volume/src/chat/chat.gateway.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/volume/src/chat/chat.gateway.ts b/back/volume/src/chat/chat.gateway.ts index 9c2c895..091ed8b 100644 --- a/back/volume/src/chat/chat.gateway.ts +++ b/back/volume/src/chat/chat.gateway.ts @@ -59,8 +59,8 @@ export class ChatGateway implements OnGatewayConnection, OnGatewayDisconnect { if (channel.banned.find((e) => e.id == connect.UserId) != null) { throw new WsException('You are banned from entering this channel') } - const user = (await this.userService.findUser(connect.UserId)) as User; - if (channel.password !== "") { + const user = (await this.userService.findUser(connect.UserId)) as User + if (channel.password !== '') { if (!(await bcrypt.compare(channel.password, connect.pwd))) { throw new BadRequestException() }