Skip to content

Commit

Permalink
fix: add notification id to response object
Browse files Browse the repository at this point in the history
  • Loading branch information
becooq81 committed Jul 30, 2024
1 parent 3af47c8 commit 128f470
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
@Getter
@Setter(AccessLevel.PRIVATE)
public class NotificationResponse {
private Long notificationId;
private Boolean readStatus;
private NotificationType notificationType;
private LocalDateTime createdAt;
private Long causedById;

public static NotificationResponse of(Notification notification) {
NotificationResponse response = new NotificationResponse();
response.setNotificationId(notification.getId());
response.setNotificationType(notification.getNotificationType());
response.setReadStatus(notification.getReadStatus());
response.setCreatedAt(notification.getCreatedAt());
Expand Down

0 comments on commit 128f470

Please sign in to comment.