Skip to content

Commit

Permalink
sytle: (#281) 쿼리 명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Jan 11, 2023
1 parent 1de025b commit 383b88f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface QueryHolidayPort {

fun queryHolidaysByYearAndMonthAndSpotIdAndType(year: Int, month: Int, spotId: UUID, type: HolidayType) : List<Holiday>

fun queryHolidaysByYearAndMonthAndTeamId(year: Int, month: Int, type: HolidayType?, spotId: UUID, teamId: UUID?) : List<EmployeeHoliday>
fun queryEmployeeHolidaysByYearAndMonthAndTeamId(year: Int, month: Int, type: HolidayType?, spotId: UUID, teamId: UUID?) : List<EmployeeHoliday>

fun existsHolidayByDateAndUserIdAndType(date: LocalDate, userId: UUID, type: HolidayType) : Boolean

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class QueryEmployeeHolidayUseCase(
val currentUserId = securityPort.getCurrentUserId()
val user = queryUserPort.queryUserById(currentUserId) ?: throw UserExceptions.NotFound()

return queryHolidayPort.queryHolidaysByYearAndMonthAndTeamId(
return queryHolidayPort.queryEmployeeHolidaysByYearAndMonthAndTeamId(
year = year,
month = month,
type = type.toHolidayType(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class HolidayPersistenceAdapter(
.map(holidayMapper::toDomainNotNull)
}

override fun queryHolidaysByYearAndMonthAndTeamId(
override fun queryEmployeeHolidaysByYearAndMonthAndTeamId(
year: Int,
month: Int,
type: HolidayType?,
Expand Down

0 comments on commit 383b88f

Please sign in to comment.