diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingService.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingService.kt index 491dd92ff..c2a331bdc 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingService.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingService.kt @@ -23,5 +23,5 @@ interface CheckOutingService { arrivalTime: LocalTime ) - fun checkQueryAble() : Boolean + fun checkOutingApplicationQueryAble() : Boolean } diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingServiceImpl.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingServiceImpl.kt index 0b339e285..9b1b544a2 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingServiceImpl.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/CheckOutingServiceImpl.kt @@ -67,7 +67,7 @@ class CheckOutingServiceImpl( } } - override fun checkQueryAble(): Boolean { + override fun checkOutingApplicationQueryAble(): Boolean { val currentTime = LocalTime.now() return currentTime.isBefore(LocalTime.of(20, 0)) diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/usecase/GetCurrentOutingApplicationUseCase.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/usecase/GetCurrentOutingApplicationUseCase.kt index dbf729fb8..880ac20d2 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/usecase/GetCurrentOutingApplicationUseCase.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/usecase/GetCurrentOutingApplicationUseCase.kt @@ -14,7 +14,8 @@ class GetCurrentOutingApplicationUseCase( fun execute(): GetCurrentOutingApplicationResponse { val student = studentService.getCurrentStudent() - outingService.checkQueryAble() + outingService.checkOutingApplicationQueryAble() + val currentOutingApplicationVO = outingService.getCurrentOutingApplication(student.id) return GetCurrentOutingApplicationResponse.of(currentOutingApplicationVO, student.name)