Skip to content

Commit

Permalink
CLAP-431 Fix : 작업 상태 변경 메시지 내용 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
starboxxxx committed Feb 14, 2025
1 parent 1010893 commit 4ca4a79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void terminateTask(Long memberId, Long taskId, String reason) {
TaskHistory taskHistory = TaskHistory.createTaskHistory(TaskHistoryType.TASK_TERMINATED, task, reason, null, null);
commandTaskHistoryPort.save(taskHistory);

publishNotification(task.getRequester(), task, String.valueOf(task.getTaskStatus()), reason);
publishNotification(task.getRequester(), task, task.getTaskStatus().getDescription(), reason);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void updateTaskStatus(Long memberId, Long taskId, TaskStatus taskStatus)
commandTaskHistoryPort.save(taskHistory);

List<Member> receivers = List.of(task.getRequester());
publishNotification(receivers, updateTask, NotificationType.STATUS_SWITCHED, String.valueOf(updateTask.getTaskStatus()));
publishNotification(receivers, updateTask, NotificationType.STATUS_SWITCHED, updateTask.getTaskStatus().getDescription());
}
}

Expand Down

0 comments on commit 4ca4a79

Please sign in to comment.