-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] : 채팅방 메시지 조회 API 개선 및 응답값 추가 #111
Conversation
ChatRoom chatRoom = getChatRoomById(chatRoomId); | ||
Slice<ChatMessageResponse> responsePage = chatMessageRepository | ||
.findByChatRoomOrderByCreatedAt(chatRoom, pageable) | ||
.findByChatRoom(chatRoom, pageable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OrderBy 빼신 이유가 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
결과가 같아서명시해주지 않으면 오래된순으로 정렬이라고 생각했습니다! 이 부분은 저도 헷갈리네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
디폴트가 OrderByCreatedAt 인가 보군요!
디폴트 정렬이 헷갈리니까 정렬 기준을 명시해주는 것도 좋은 것 같습니다
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분