Skip to content

Commit

Permalink
refactor : subgoal의 doneDates 수정 구현 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
soHyn committed Jan 12, 2024
1 parent 46ac08c commit 2dff71a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ public class SubgoalController {
public ResponseEntity<List<LocalDate>> updateSubgoal(
@PathVariable("goalId") Long goalId,
@PathVariable("subgoalId") Long subgoalId
// ,@RequestBody @Validated UpdateSubgoalRequest request
) {
// Goal goal = goalRepository.findById(goalId).orElse(null);
// goal.getSubgoals();

List<LocalDate> doneDates = subgoalService.updateSubgoal(subgoalId);

return ResponseEntity.ok(doneDates);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ public class SubgoalResponse {
@Data
@NoArgsConstructor
public static class SubgoalInfo {
private Long subgoalId;
private String subgoalName;
private List<LocalDate> doneDates;
private List<LocalDate> doneDateList;
}
}

Expand Down

0 comments on commit 2dff71a

Please sign in to comment.