Skip to content

Commit

Permalink
[FIX] FCM 메시지 데이터 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkim-auto committed Feb 29, 2024
1 parent e2eec78 commit 9b2469b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void enter(StompDto stompDto, @Header("Authorization") String token) {
} catch (IOException e) {
throw new WooyeonException(ExceptionCode.FCM_SEND_FAIL_ERROR);
}
chatService.saveChat(stompDto, sessionStore, loginEmail);
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/wooyeon/yeon/common/fcm/dto/FcmDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static class Notification {
public static class Data {
private String name;
private String description;
private int chatRoomId;
private String chatRoomId;
private String type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ public String makeMessage(
.data(
FcmDto.Data.builder()
.type("chat")
.chatRoomId(chatRoomId)
.name(email)
.description(description)
.chatRoomId(String.valueOf(chatRoomId))
.build()
)
.build()
Expand Down

0 comments on commit 9b2469b

Please sign in to comment.