Skip to content

Commit

Permalink
🐛 fix: oldchats가 2중배열로 전달되는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gamgyul163 committed Nov 27, 2024
1 parent 5d9dccb commit 4864ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/apps/chats/src/chats.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4864ba5

Please sign in to comment.