Skip to content

Commit

Permalink
fix: 질문 상세 조회 API 버그 수정했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakerdeft committed May 8, 2024
1 parent 68eef24 commit 751b7b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface QuestionRepository extends JpaRepository<Question, Long>, Quest
@Query("""
SELECT q
FROM Question q
JOIN FETCH q.answers
LEFT JOIN FETCH q.answers
WHERE q.member.id = :memberId
AND q.questionStatus = true
ORDER BY q.createdAt DESC
Expand All @@ -30,7 +30,7 @@ Optional<Page<Question>> findRegisteredQuestionsByMemberId(
@Query("""
SELECT DISTINCT q
FROM Question q
JOIN FETCH q.answers
LEFT JOIN FETCH q.answers
WHERE q.id = :questionId
AND q.questionStatus = true
""")
Expand Down

0 comments on commit 751b7b3

Please sign in to comment.