Skip to content

Commit

Permalink
fix: archiveListView 개수 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kiteB committed Jul 28, 2023
1 parent 24cbd74 commit 999be21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public class ArchiveControllerV2 implements ArchiveControllerV2Docs {
@GetMapping
public ResponseEntity<MyArchiveListResponseDto> archiveListView(@RequestUser UserInfo userInfo,
ArchivePageable pageable) {
var archiveCount = archiveService.countArchive(userInfo);
// var archiveCount = archiveService.countArchive(userInfo);
var myArchives = pageable.isRequestFirstPage()
? archiveService.getAllArchiveFirstPage(userInfo, pageable)
: archiveService.getAllArchiveNextPage(userInfo, pageable);
return ResponseEntity.ok(MyArchiveListResponseDto.from(archiveCount, myArchives));
return ResponseEntity.ok(MyArchiveListResponseDto.from(myArchives.size(), myArchives));
}

@GetMapping("/other")
Expand Down

0 comments on commit 999be21

Please sign in to comment.