Skip to content

Commit fa767d6

Browse files
authored
Merge pull request #363 from TaskFlow-CLAP/CLAP-302
CLAP-302 댓글 API endpoint 수정
2 parents 3178e19 + eecb494 commit fa767d6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/clap/server/adapter/inbound/web/history/CommandCommentController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@WebAdapter
2020
@RestController
2121
@RequiredArgsConstructor
22-
@RequestMapping("/api/comment")
22+
@RequestMapping("/api/comments")
2323
public class CommandCommentController {
2424

2525
private final EditCommentUsecase editCommentUsecase;

src/main/java/clap/server/adapter/inbound/web/history/PostCommentController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@WebAdapter
2323
@RestController
2424
@RequiredArgsConstructor
25-
@RequestMapping("/api/comment")
25+
@RequestMapping("/api/comments")
2626
public class PostCommentController {
2727

2828
private final SaveCommentUsecase saveCommentUsecase;

src/main/java/clap/server/adapter/inbound/web/notification/ManagementNotificationController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@Tag(name = "04. Notification")
1818
@WebAdapter
1919
@RestController
20-
@RequestMapping("/api/notification")
20+
@RequestMapping("/api/notifications")
2121
@RequiredArgsConstructor
2222
public class ManagementNotificationController {
2323

src/main/java/clap/server/application/service/task/ApprovalTaskService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public ApprovalTaskResponse approvalTaskByReviewer(Long reviewerId, Long taskId,
5757
TaskHistory taskHistory = TaskHistory.createTaskHistory(TaskHistoryType.PROCESSOR_ASSIGNED, task, null, processor,null);
5858
commandTaskHistoryPort.save(taskHistory);
5959

60-
List<Member> receivers = List.of(reviewer, processor);
60+
List<Member> receivers = List.of(task.getRequester(), processor);
6161
String processorName = processor.getNickname();
6262
publishNotification(receivers, task, processorName);
6363

0 commit comments

Comments
 (0)