Skip to content

Commit

Permalink
refactor: title, body alert data에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 16, 2024
1 parent 641ee6e commit 9cffa33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private Message buildMessage(String token, Alert alert, Map<String, String> data
.setToken(token)
.setNotification(buildNotification(alert))
.setAndroidConfig(buildAndroidConfig(alert))
.putData("title", alert.getTitle())
.putData("body", alert.getBody())
.putData("publishedAt", alert.getCreatedAt().toString())
.putData("userId", alert.getUserId().toString())
.putData("type", alert.getType().toString())
Expand Down

0 comments on commit 9cffa33

Please sign in to comment.