Skip to content

Commit

Permalink
fix: 함수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
12xii committed Nov 7, 2023
1 parent a94b9e1 commit 428f453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface CustomQuestionSetsRepository {

fun queryQuestionSetDtoByProblemIdIn(user: User, problemIds: List<Long>): PageResponse<QuestionSetDto>

fun queryQuestionSetDtoByWriterId(page: Int, user: User): PageResponse<QuestionSetDto>
fun queryQuestionSetDtoByWriter(page: Int, user: User): PageResponse<QuestionSetDto>
}

@Repository
Expand Down Expand Up @@ -169,7 +169,7 @@ class CustomQuestionSetsRepositoryImpl(
)
}

override fun queryQuestionSetDtoByWriterId(page: Int, user: User): PageResponse<QuestionSetDto> {
override fun queryQuestionSetDtoByWriter(page: Int, user: User): PageResponse<QuestionSetDto> {
val questionSets = queryFactory
.selectFrom(questionSets)
.where(questionSets.author.eq(user))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class UserService(
fun getMyQuestionSet(request: GetMyQuestionRequest): QuestionSetListResponse {
val user = SecurityUtil.getCurrentUser()

val userQuestionSets = questionSetsRepository.queryQuestionSetDtoByWriterId(request.page, user)
val userQuestionSets = questionSetsRepository.queryQuestionSetDtoByWriter(request.page, user)

return QuestionSetListResponse.of(userQuestionSets)
}
Expand Down

0 comments on commit 428f453

Please sign in to comment.