diff --git a/src/main/kotlin/kr/hs/dsm/inq/domain/question/persistence/repository/QuestionSetsRepository.kt b/src/main/kotlin/kr/hs/dsm/inq/domain/question/persistence/repository/QuestionSetsRepository.kt index bc334bb..2972fef 100644 --- a/src/main/kotlin/kr/hs/dsm/inq/domain/question/persistence/repository/QuestionSetsRepository.kt +++ b/src/main/kotlin/kr/hs/dsm/inq/domain/question/persistence/repository/QuestionSetsRepository.kt @@ -38,7 +38,7 @@ interface CustomQuestionSetsRepository { fun queryQuestionSetDtoByProblemIdIn(user: User, problemIds: List): PageResponse - fun queryQuestionSetDtoByWriterId(page: Int, user: User): PageResponse + fun queryQuestionSetDtoByWriter(page: Int, user: User): PageResponse } @Repository @@ -169,7 +169,7 @@ class CustomQuestionSetsRepositoryImpl( ) } - override fun queryQuestionSetDtoByWriterId(page: Int, user: User): PageResponse { + override fun queryQuestionSetDtoByWriter(page: Int, user: User): PageResponse { val questionSets = queryFactory .selectFrom(questionSets) .where(questionSets.author.eq(user)) diff --git a/src/main/kotlin/kr/hs/dsm/inq/domain/user/service/UserService.kt b/src/main/kotlin/kr/hs/dsm/inq/domain/user/service/UserService.kt index fbc8233..df2219f 100644 --- a/src/main/kotlin/kr/hs/dsm/inq/domain/user/service/UserService.kt +++ b/src/main/kotlin/kr/hs/dsm/inq/domain/user/service/UserService.kt @@ -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) }