Skip to content

Commit 3add525

Browse files
committedDec 17, 2024
투두 수정 리퀘스트 변경
1 parent d640090 commit 3add525

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed
 

‎src/main/java/ttakkeun/ttakkeun_server/dto/todo/TodoContentUpdateRequestDto.java

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
@Getter
99
@Setter
1010
public class TodoContentUpdateRequestDto {
11-
private Category todoCategory;
1211
private String todoName;
13-
private TodoStatus todoStatus;
1412
}

‎src/main/java/ttakkeun/ttakkeun_server/service/TodoService.java

-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ public TodoResponseDto updateTodoContent(Long todoId, TodoContentUpdateRequestDt
6161
Todo todo = todoRepository.findById(todoId)
6262
.orElseThrow(() -> new ExceptionHandler(TODO_ID_NOT_AVAILABLE));
6363

64-
todo.setTodoCategory(request.getTodoCategory());
6564
todo.setTodoName(request.getTodoName());
66-
todo.setTodoStatus(request.getTodoStatus());
67-
todoRepository.save(todo);
6865

6966
return new TodoResponseDto(todo.getTodoId(), todo.getTodoDate(), convertStatusToBoolean(todo.getTodoStatus()));
7067
}

0 commit comments

Comments
 (0)