Skip to content

Commit

Permalink
Merge pull request #285 from boostcampwm-2024/fix/be/chats
Browse files Browse the repository at this point in the history
[Fix] oldchats가 2중배열로 전달되는 문제 수정
  • Loading branch information
pc5401 authored Nov 28, 2024
2 parents d00e094 + 4864ba5 commit f46a5f5
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 f46a5f5

Please sign in to comment.