Skip to content

Commit

Permalink
📝 PurchaseRepository 의 find 메서드에 내림차순 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Dec 20, 2023
1 parent 4059f03 commit 6d34d7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ListMyPurchaseItemServiceImpl(

val user = userUtil.currentUser()

val purchase = purchaseRepository.findAllByUser(user)
val purchase = purchaseRepository.findAllByUserOrderByCreatedDateDesc(user)
?: throw PurchaseNotFoundException()

return ListMyPurchaseItemResponseDto(
Expand Down

0 comments on commit 6d34d7e

Please sign in to comment.