Skip to content

Commit 7d37d90

Browse files
committed
CLAP-136 Fix: Merge Conflict Solve
1 parent 20fa0dc commit 7d37d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ public Notification(Task task, NotificationType type, Member receiver, String me
3838
public void updateNotificationIsRead() {
3939
this.isRead = true;
4040
}
41+
42+
public static Notification createTaskNotification(Task task, Member reviewer, NotificationType type) {
43+
return Notification.builder()
44+
.task(task)
45+
.type(type)
46+
.receiver(reviewer)
47+
.message(null)
48+
.build();
49+
}
4150
}

0 commit comments

Comments
 (0)