Skip to content

Commit c75f6fc

Browse files
committed
CLAP-294 Fix: 이메일 알림 템플릿에 status 필드 추가
<footer> - 관련: #350
1 parent 2a993aa commit c75f6fc

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/main/java/clap/server/adapter/outbound/api/EmailTemplateBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public EmailTemplate createWebhookTemplate(PushNotificationTemplate request) {
3232
context.setVariable("taskDetailUrl", taskDetailUrl);
3333
context.setVariable("receiverName", request.senderName());
3434
context.setVariable("title", request.taskName());
35+
context.setVariable("status", request.status());
3536
break;
3637
case PROCESSOR_CHANGED:
3738
templateName = "processor-changed";

src/main/java/clap/server/adapter/outbound/api/dto/PushNotificationTemplate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public record PushNotificationTemplate(
77
String email,
88
NotificationType notificationType,
99
String taskName,
10+
String status,
1011
String senderName,
1112
String message,
1213
String commenterName

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void sendPushNotification(Member receiver, NotificationType notificationT
3434
Notification notification = createTaskNotification(task, receiver, notificationType, message, taskTitle);
3535

3636
PushNotificationTemplate pushNotificationTemplate = new PushNotificationTemplate(
37-
email, notificationType, taskTitle, requesterNickname, message, commenterName
37+
email, notificationType, taskTitle, task.getTaskStatus().getDescription(), requesterNickname, message, commenterName
3838
);
3939

4040
CompletableFuture<Void> saveNotification = CompletableFuture.runAsync(() -> {
@@ -69,6 +69,7 @@ public void sendAgitNotification(NotificationType notificationType,
6969
null,
7070
notificationType,
7171
task.getTitle(),
72+
task.getTaskStatus().getDescription(),
7273
task.getRequester().getNickname(),
7374
message,
7475
commenterName

0 commit comments

Comments
 (0)