Skip to content

Commit e176c0a

Browse files
committed
CLAP-278 Fix : Notification 생성자 message null 문제 해결
1 parent c64c6ae commit e176c0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/clap/server/application/service/webhook/SendNotificationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void sendPushNotification(Member receiver, NotificationType notificationT
3131
String taskTitle = task.getTitle();
3232
String requesterNickname = task.getRequester().getNickname();
3333

34-
Notification notification = createTaskNotification(task, receiver, notificationType);
34+
Notification notification = createTaskNotification(task, receiver, notificationType, message);
3535

3636
SseRequest sseRequest = new SseRequest(
3737
task.getTitle(),

src/main/java/clap/server/domain/model/notification/Notification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public void updateNotificationIsRead() {
3939
this.isRead = true;
4040
}
4141

42-
public static Notification createTaskNotification(Task task, Member reviewer, NotificationType type) {
42+
public static Notification createTaskNotification(Task task, Member reviewer, NotificationType type, String message) {
4343
return Notification.builder()
4444
.task(task)
4545
.type(type)
4646
.receiver(reviewer)
47-
.message(null)
47+
.message(message)
4848
.build();
4949
}
5050
}

0 commit comments

Comments
 (0)