Skip to content

Commit

Permalink
fix: ddl auto
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn113 committed Dec 9, 2024
1 parent 6879e1e commit 6115faa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public class ExamRepositoryImpl implements ExamRepositoryCustom {
@Override
public List<ExamSummaryDto> findPublishedSummaries() {
return queryFactory
.select(new QExamSummaryDto(
.selectDistinct(new QExamSummaryDto(
exam.id,
exam.title.value,
exam.description.value,
exam.status,
AUTHOR_PROJECTION,
exam.questionGroup.questions.size(), // postgreSQL group by 문제
exam.questionGroup.questions.size(), // postgreSQL group by 이슈로 인함.
exam.createdAt,
exam.updatedAt
))
Expand All @@ -52,7 +52,7 @@ public List<ExamSummaryDto> findPublishedSummaries() {
@Override
public List<ExamSummaryDto> findMySummaries(ExamStatus status, Long memberId) {
return queryFactory
.select(new QExamSummaryDto(
.selectDistinct(new QExamSummaryDto(
exam.id,
exam.title.value,
exam.description.value,
Expand Down

0 comments on commit 6115faa

Please sign in to comment.