From 6d34d7e624673abf8745ed7ba12b09e16c2ab850 Mon Sep 17 00:00:00 2001 From: uuuuuuuk Date: Wed, 20 Dec 2023 17:06:00 +0900 Subject: [PATCH] =?UTF-8?q?:memo:=20PurchaseRepository=20=EC=9D=98=20find?= =?UTF-8?q?=20=EB=A9=94=EC=84=9C=EB=93=9C=EC=97=90=20=EB=82=B4=EB=A6=BC?= =?UTF-8?q?=EC=B0=A8=EC=88=9C=20=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/service/impl/ListMyPurchaseItemServiceImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/andreas311/miso/domain/purchase/service/impl/ListMyPurchaseItemServiceImpl.kt b/src/main/kotlin/andreas311/miso/domain/purchase/service/impl/ListMyPurchaseItemServiceImpl.kt index eff0ea91..75aad067 100644 --- a/src/main/kotlin/andreas311/miso/domain/purchase/service/impl/ListMyPurchaseItemServiceImpl.kt +++ b/src/main/kotlin/andreas311/miso/domain/purchase/service/impl/ListMyPurchaseItemServiceImpl.kt @@ -18,7 +18,7 @@ class ListMyPurchaseItemServiceImpl( val user = userUtil.currentUser() - val purchase = purchaseRepository.findAllByUser(user) + val purchase = purchaseRepository.findAllByUserOrderByCreatedDateDesc(user) ?: throw PurchaseNotFoundException() return ListMyPurchaseItemResponseDto(