Skip to content

Commit

Permalink
Fix [#137] 태스크 생성 시 startDate null 핸들링 (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusYoo authored Jul 17, 2024
2 parents 4a9be43 + a25c436 commit 3c5d848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean isContains(TaskWithTaskTimer taskWithTaskTimer, LocalDate idxDate
public void create(Long categoryId, TaskCreateRequest taskCreateRequest) {
Task task = Task.create(
taskCreateRequest.name(),
taskCreateRequest.startDate(),
taskCreateRequest.startDate() == null ? LocalDate.now() : taskCreateRequest.startDate(),
taskCreateRequest.endDate());

task = taskRepository.save(task);
Expand Down

0 comments on commit 3c5d848

Please sign in to comment.