Skip to content

Commit

Permalink
fix: 빌드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Oct 31, 2023
1 parent 7dd768b commit caf4703
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class CustomQuestionSetsRepositoryImpl(

private fun <T> JPAQuery<T>.getQuestionSetDto(user: User): MutableList<QuestionSetDto> {
val author = QUser("writer")
return leftJoin(questionTags).on(questionTags.problems.eq(questionSets.problemId))
return leftJoin(questionTags).on(questionTags.problems.eq(questionSets.problem))
.leftJoin(tags).on(tags.id.eq(questionTags.id.tagId))
.leftJoin(questionSolvingHistory)
.on(questionSolvingHistory.userId.id.eq(user.id)).on(questionSolvingHistory.problem.eq(questionSets.problemId))
.innerJoin(author).on(author.id.eq(questionSets.authorId.id))
.on(questionSolvingHistory.userId.id.eq(user.id)).on(questionSolvingHistory.problem.eq(questionSets.problem))
.innerJoin(author).on(author.id.eq(questionSets.author.id))
// .rightJoin(favorite).on(favorite.questions.id.eq(questions.id))
// .rightJoin(answers).on(answers.writer.eq(user).and(answers.questions.eq(questions)))
.transform(
Expand Down Expand Up @@ -119,7 +119,7 @@ class CustomQuestionSetsRepositoryImpl(
val author = QUser("writer")
val liked = QLike("liked")
val favorite = QFavorite("favorite")
return@run leftJoin(questionTags).on(questionTags.problems.eq(questionSets.problemId))
return@run leftJoin(questionTags).on(questionTags.problems.eq(questionSets.problem))
.leftJoin(tags).on(tags.id.eq(questionTags.id.tagId))
.innerJoin(author).on(author.id.eq(questionSets.author.id))
.leftJoin(liked).on(liked.id.userId.eq(user.id)).on(liked.post.eq(questionSets.post))
Expand Down

0 comments on commit caf4703

Please sign in to comment.