From 8612cf8a35af0accd9ee7a46f5b61a83082a8be6 Mon Sep 17 00:00:00 2001 From: geniuus Date: Thu, 18 Jul 2024 04:38:38 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20[#135]=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=83=9D=EC=84=B1=20=EC=8B=9C=20startDate=20null?= =?UTF-8?q?=20=ED=95=B8=EB=93=A4=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 오늘 날짜로 자동 매핑 --- .../java/org/sopt/jaksim/category/service/CategoryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaksim/src/main/java/org/sopt/jaksim/category/service/CategoryService.java b/jaksim/src/main/java/org/sopt/jaksim/category/service/CategoryService.java index 79dcb73..1ab0e1e 100644 --- a/jaksim/src/main/java/org/sopt/jaksim/category/service/CategoryService.java +++ b/jaksim/src/main/java/org/sopt/jaksim/category/service/CategoryService.java @@ -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());