We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8d05ac + 3adb0d0 commit 0b3f505Copy full SHA for 0b3f505
src/main/java/com/memesphere/domain/chat/controller/ChatController.java
@@ -50,7 +50,7 @@ public ApiResponse<Page<ChatResponse>> getChatList(@PathVariable("coin_id") Long
50
description = "특정 코인에 대한 최신 댓글을 반환합니다. 요청 시 최신 댓글 하나만 가져옵니다.")
51
public ApiResponse<ChatResponse> getLatestMessages(@PathVariable("coin_id") Long coin_id,
52
@AuthenticationPrincipal CustomUserDetails customUserDetails) {
53
- User user = customUserDetails.getUser();
+ User user = (customUserDetails != null) ? customUserDetails.getUser() : null;
54
// 최신 댓글을 가져오는 서비스 메서드 호출
55
ChatResponse latestMessage = chatService.getLatestMessages(coin_id, user);
56
0 commit comments