From 428f453e7c68ba0d241be4b449ae48564d3f0bd0 Mon Sep 17 00:00:00 2001 From: 12xii Date: Tue, 7 Nov 2023 12:39:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=95=A8=EC=88=98=EB=AA=85=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../question/persistence/repository/QuestionSetsRepository.kt | 4 ++-- .../kotlin/kr/hs/dsm/inq/domain/user/service/UserService.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }