Skip to content

Commit

Permalink
hotfix: 이메일 인증코드 스웨거 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyongdodam committed Mar 18, 2024
1 parent c58b118 commit 5668e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private List<Chat> sortChatsByLatestMessage(List<Chat> chats) {
Map<Chat, LocalDateTime> latestMessageTime = new HashMap<>();
for (Chat chat : chats) {
ChatMessage latestMessage = chatMessageRepository.findTopByChatOrderByUpdatedAtDesc(chat);
latestMessageTime.put(chat, latestMessage != null ? latestMessage.getUpdatedAt() : LocalDateTime.MIN);
latestMessageTime.put(chat, latestMessage != null ? latestMessage.getUpdatedAt() : chat.getUpdatedAt());
}

return chats.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public class EmailController {
@Operation(summary = "이메일 인증코드 발송", description = "회원가입 시 이메일 인증코드를 발송")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "해당 이메일로 인증 코드 발송 성공"),
@ApiResponse(responseCode = "400", description = "1. 이미 회원으로 등록된 이메일\n"
+ "2. 5분 내에 코드 전송 5회 횟수를 초과 했을 경우\n"
+ "3. 올바르지 않은 이메일 형식", content = @Content(mediaType = "application/json",
@ApiResponse(responseCode = "400", description = "1. 5분 내에 코드 전송 5회 횟수를 초과 했을 경우\n"
+ "2. 올바르지 않은 이메일 형식", content = @Content(mediaType = "application/json",
schema = @Schema(implementation = CustomExceptionResponse.class))
),
@ApiResponse(responseCode = "409", description = "1. 이미 회원으로 등록된 이메일", content = @Content(mediaType = "application/json",
schema = @Schema(implementation = CustomExceptionResponse.class))
)
})
Expand Down

0 comments on commit 5668e16

Please sign in to comment.