From 5b4df7bef6d9bb1ba0072417f3b613e6fdc4a4ef Mon Sep 17 00:00:00 2001 From: pricelees Date: Mon, 15 Sep 2025 12:09:05 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20DTO=20=EB=AA=85=EB=AA=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=8F=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roomescape/reservation/business/ReservationService.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/roomescape/reservation/business/ReservationService.kt b/src/main/kotlin/roomescape/reservation/business/ReservationService.kt index e584a11d..daf402c5 100644 --- a/src/main/kotlin/roomescape/reservation/business/ReservationService.kt +++ b/src/main/kotlin/roomescape/reservation/business/ReservationService.kt @@ -8,7 +8,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional import roomescape.common.config.next import roomescape.common.dto.CurrentUserContext -import roomescape.common.dto.PrincipalType import roomescape.common.util.DateUtils import roomescape.user.business.UserService import roomescape.user.web.UserContactResponse @@ -101,7 +100,7 @@ class ReservationService( return ReservationSummaryListResponse(reservations.map { val schedule: ScheduleSummaryResponse = scheduleService.findSummaryById(it.scheduleId) - val theme: ThemeInfoResponse = themeService.findSummaryById(schedule.themeId) + val theme: ThemeInfoResponse = themeService.findInfoById(schedule.themeId) ReservationSummaryResponse( id = it.id, @@ -183,7 +182,7 @@ class ReservationService( private fun validateCanCreate(request: PendingReservationCreateRequest) { val schedule = scheduleService.findSummaryById(request.scheduleId) - val theme = themeService.findSummaryById(schedule.themeId) + val theme = themeService.findInfoById(schedule.themeId) reservationValidator.validateCanCreate(schedule, theme, request) }