Skip to content

Commit

Permalink
fix: 채팅방 내 게시글 미리보기 API에 캐릭터 -> 게시글 작성자 캐릭터로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunjji committed Sep 10, 2023
1 parent 6410632 commit b572cc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/back/handsUp/service/ChatService.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public ChatDto.ResBoardPreview getPreViewBoard(Principal principal, Long boardId
ChatDto.ResBoardPreview boardPreview = ChatDto.ResBoardPreview.builder()
.board(board)
.tag(tagName)
.character(loginUser.getCharacter())
.character(writer.getCharacter())
.writerEmail(writer.getEmail())
.nickname(boardUser.getUserIdx().getNickname())
.build();
Expand Down Expand Up @@ -160,6 +160,7 @@ public String chatAlarm(Principal principal, ChatDto.ResSendChat sendChat) throw
.build();
try {
notificationRepository.save(notificationEntity);
log.info("세이브 완={}", "complete");
firebaseCloudMessageService.sendMessageTo(fcmToken.getFcmToken(), me.getNickname(), "채팅이 도착하였습니다.");
return "채팅 알림을 성공적으로 보냈습니다.";
} catch (Exception e) {
Expand Down

0 comments on commit b572cc6

Please sign in to comment.