Skip to content

Commit

Permalink
fix: 하위 태그로 경험 조회 메소드 호출 오류 수정(#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereami2048 committed May 21, 2024
1 parent f2440dc commit a8cebf2
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 @@ -58,7 +58,7 @@ class ExperienceGetService(
}

fun getExperienceByYearAndChildTag(year: Int, childTagId: UUID): GetExperience.Response {
val experiences = experienceReader.readByYearAndParentTagId(year, childTagId).map {
val experiences = experienceReader.readByChildTagIdAndYear(year, childTagId).map {
createExperienceDetailResponse(it)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class TagGetService(
var totalExperienceCount = 0

val childTagDetails = childTags.map {
val experiences = experienceReader.readByChildTagIdAndYear(it.id, year)
val experiences = experienceReader.readByChildTagIdAndYear(year, it.id)
totalExperienceCount += experiences.size
GetChildTag.ChildTagSummary(
it.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ExperienceReader(
return experienceRepository.findByUserIdAndParentTagIdAndYearDesc(year, parentTagId, userId)
}

fun readByChildTagIdAndYear(childTagId: UUID, year: Int): List<Experience> {
fun readByChildTagIdAndYear(year: Int, childTagId: UUID): List<Experience> {
return experienceRepository.findByYearAndChildTagId(year, childTagId)
}
}

0 comments on commit a8cebf2

Please sign in to comment.