Skip to content

Commit

Permalink
Fix [#135] 카테고리 생성 시 startDate null 핸들링 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusYoo authored Jul 17, 2024
2 parents bd2a01f + 8612cf8 commit 4a9be43
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 void create(CategoryCreateRequest categoryCreateRequest) {
categoryCreateRequest.name(),
// userFacade.getUserByPrincipal().getId(),
3L,
categoryCreateRequest.startDate(),
categoryCreateRequest.startDate() == null ? LocalDate.now() : categoryCreateRequest.startDate(),
categoryCreateRequest.endDate());
category = categoryRepository.save(category);
msetService.createByCategory(categoryCreateRequest, category.getId());
Expand Down

0 comments on commit 4a9be43

Please sign in to comment.