Skip to content

Commit

Permalink
chore: update totalCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 25, 2024
1 parent 3750f93 commit 3bf272d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/co/orange/ddanzi/service/MyPageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ public ApiResponse<?> getMyPage(){
@Transactional
public ApiResponse<?> getMyOrder(){
User user = authUtils.getUser();
Integer totalCount = orderService.getMyOrderCount(user);
List<MyOrder> orderProductList = orderService.getMyOrderList(user);

return ApiResponse.onSuccess(Success.GET_MY_ORDER_LIST_SUCCESS, MyOrderResponseDto.builder()
.totalCount(totalCount)
.totalCount(orderProductList.size())
.orderProductList(orderProductList)
.build());
}
Expand Down

0 comments on commit 3bf272d

Please sign in to comment.