Skip to content

Commit

Permalink
Merge pull request #209 from 9uttery/feat/get-album-detail-api-#207
Browse files Browse the repository at this point in the history
[Feature] 앨범 상세 조회 API 수정
  • Loading branch information
hojeong2747 authored Sep 3, 2024
2 parents 7659377 + a5cd8ef commit a788569
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public List<JoyGetInfo> getMyAlbumJoys(Long albumId) {
.join(savingJoy)
.on(savingJoy.joy.joyId.eq(joy.joyId)
.and(savingJoy.album.albumId.eq(albumId)))
.orderBy(savingJoy.createdAt.desc())
.orderBy(savingJoy.joyOrder.asc())
.fetch();
}

Expand All @@ -76,7 +76,7 @@ public List<JoyGetInfo> getAlbumJoys(Long albumId, Long userId) {
.join(savingJoy)
.on(savingJoy.joy.joyId.eq(joy.joyId)
.and(savingJoy.album.albumId.eq(albumId)))
.orderBy(savingJoy.createdAt.desc())
.orderBy(savingJoy.joyOrder.asc())
.fetch();
}

Expand All @@ -96,7 +96,7 @@ public List<JoyGetInfo> getSavedAlbumJoys(Long albumId, Long userId) {
.join(savingJoy)
.on(savingJoy.joy.joyId.eq(joy.joyId)
.and(savingJoy.album.albumId.eq(albumId)))
.orderBy(savingJoy.createdAt.desc())
.orderBy(savingJoy.joyOrder.asc())
.fetch();
}

Expand Down

0 comments on commit a788569

Please sign in to comment.