Skip to content

Commit

Permalink
Hotfix | #81 | @YongsHub | v1.0.1 출시 위해 Join 방식 변경
Browse files Browse the repository at this point in the history
* fix: cross join 생성 되는 에러 삭제

* fix: join 방식 재수정
  • Loading branch information
YongsHub authored Feb 26, 2024
1 parent 6a7ba77 commit dbe3c8a
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class DiaryQueryRepository(
fun findBeforeNowUsingCursor(param: DiaryListRequestParam): List<DiaryResponseParam> {
return queryFactory
.from(diary)
.innerJoin(user)
.on(eqUserId(user.id))
.innerJoin(diary.user)
.where(
eqCouple(param.userId, param.partnerId),
eqMemoryDateAndGtDiaryId(param.memoryDate, param.diaryId),
Expand Down Expand Up @@ -61,8 +60,7 @@ class DiaryQueryRepository(
fun findAfterNowUsingCursor(param: DiaryListRequestParam): List<DiaryResponseParam> {
return queryFactory
.from(diary)
.innerJoin(user)
.on(eqUserId(user.id))
.innerJoin(diary.user)
.where(
eqCouple(param.userId, param.partnerId),
eqMemoryDateAndGtDiaryId(param.memoryDate, param.diaryId),
Expand Down Expand Up @@ -106,8 +104,7 @@ class DiaryQueryRepository(
)
)
.from(diary)
.innerJoin(user)
.on(eqUserId(user.id))
.innerJoin(diary.user)
.where(eqCouple(param.userId, param.partnerId), eqMemoryDate(param.memoryDate))
.orderBy(ascDiaryId())
.fetch()
Expand All @@ -127,8 +124,7 @@ class DiaryQueryRepository(
)
)
.from(diary)
.innerJoin(user)
.on(eqUserId(user.id))
.innerJoin(diary.user)
.where(eqCouple(userId, partnerId))
.orderBy(ascDiaryId())
.fetch()
Expand Down

0 comments on commit dbe3c8a

Please sign in to comment.