Skip to content

Commit

Permalink
Merge pull request #170 from UnivApp/feature/notification-refactor21
Browse files Browse the repository at this point in the history
refactor: 알림 생성 반환 필드 수정
  • Loading branch information
nyeroni authored Nov 1, 2024
2 parents ca544af + 7bb4f46 commit 47cbdd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
public class NotificationResponse {

private Long notificationId;
private String title;
private String type;
private LocalDate notificationDate;
private Long eventId;
private List<String> registrationTokens;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public void sendNotifications() {
private NotificationResponse convertToResponse(Notification notification) {
return NotificationResponse.builder()
.notificationId(notification.getNotificationId())
.title(notification.getEvent().getTitle())
.type(notification.getEvent().getCalendarEventType().getDisplayName())
.notificationDate(notification.getNotificationDate())
.eventId(notification.getEvent().getId())
.registrationTokens(notification.getRegistrationTokens())
Expand Down

0 comments on commit 47cbdd7

Please sign in to comment.