From 4864ba5f4763a9712cc00a5642fcaea7267302a1 Mon Sep 17 00:00:00 2001 From: gamgyul163 Date: Wed, 27 Nov 2024 12:02:52 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20oldchats=EA=B0=80=202?= =?UTF-8?q?=EC=A4=91=EB=B0=B0=EC=97=B4=EB=A1=9C=20=EC=A0=84=EB=8B=AC?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/apps/chats/src/chats.gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/apps/chats/src/chats.gateway.ts b/Backend/apps/chats/src/chats.gateway.ts index 921ee0de..cae287ec 100644 --- a/Backend/apps/chats/src/chats.gateway.ts +++ b/Backend/apps/chats/src/chats.gateway.ts @@ -57,7 +57,7 @@ export class ChatsGateway implements OnGatewayDisconnect, OnGatewayConnection { .lrange(`${channelId}:chats`, -this.OLD_CHATS_MAXIMUM_SIZE, -1) .exec(); - socket.emit('chat', results[1]); + socket.emit('chat', results[1][1]); } async handleDisconnect(socket: Socket) {