Skip to content

Commit

Permalink
Fix [#135] 카테고리 생성 시 startDate null 핸들링
Browse files Browse the repository at this point in the history
오늘 날짜로 자동 매핑
  • Loading branch information
geniusYoo committed Jul 17, 2024
1 parent bd2a01f commit 8612cf8
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 8612cf8

Please sign in to comment.