Skip to content

Commit 4bbfbde

Browse files
committed
feat: init 질문 리스트 reverse
1 parent cfe9dab commit 4bbfbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/chatServer/src/chat/chat.gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class ChatGateway implements OnGatewayInit, OnGatewayConnection, OnGatewa
8080
console.log(client.id, userId, roomId);
8181
const questionList = await this.roomService.getQuestionsNotDone(roomId);
8282
console.log('questionList', questionList);
83-
client.emit(CHATTING_SOCKET_RECEIVE_EVENT.INIT, { roomId, questionList });
83+
client.emit(CHATTING_SOCKET_RECEIVE_EVENT.INIT, { roomId, questionList: questionList.reverse() });
8484
}
8585

8686
// 특정 방에서 나가기 위한 메서드

0 commit comments

Comments
 (0)