File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/clap/server/adapter/inbound/web/task Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ public class ChangeTaskController {
3939 @ Operation (summary = "작업 상태 변경" )
4040 @ Secured ("ROLE_MANAGER" )
4141 @ PatchMapping ("/{taskId}/status" )
42- public void updateTaskState (
42+ public ResponseEntity < UpdateTaskResponse > updateTaskState (
4343 @ PathVariable @ NotNull Long taskId ,
4444 @ AuthenticationPrincipal SecurityUserDetails userInfo ,
4545 @ Parameter (description = "변경하고 싶은 작업 상태" ,
4646 schema = @ Schema (allowableValues = {"IN_PROGRESS" , "PENDING_COMPLETED" , "COMPLETED" }))
4747 @ RequestBody TaskStatus taskStatus ) {
48- updateTaskStatusUsecase .updateTaskStatus (userInfo .getUserId (), taskId , taskStatus );
48+
49+ return ResponseEntity .ok (updateTaskStatusUsecase .updateTaskStatus (userInfo .getUserId (), taskId , taskStatus ));
4950 }
5051
5152 @ Operation (summary = "작업 처리자 변경" )
You can’t perform that action at this time.
0 commit comments