Skip to content

Commit

Permalink
♻️ refactor : 내 정보 조회시 스터디를 최근 가입한 순으로 정렬 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcv9203 committed Aug 14, 2022
1 parent f80ed43 commit 5d1e44c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ private List<StudyInfo> getUserStudiesInfo(Long userId, int limit) {
).from(studyMember)
.innerJoin(studyMember.study)
.innerJoin(studyMember.user)
.where(
studyMember.status.in(OWNED, ACCEPTED)
)
.on(studyMember.user.id.eq(userId))
.where(
studyMember.status.in(OWNED, ACCEPTED)
)
.orderBy(studyMember.updatedAt.desc())
.limit(limit)
.fetch();
}
Expand Down

0 comments on commit 5d1e44c

Please sign in to comment.