Skip to content

Commit

Permalink
Merge pull request #61 from Team-Archive/fix/archive-list-count
Browse files Browse the repository at this point in the history
fix: archiveListView 개수 였λ₯˜ μˆ˜μ •
  • Loading branch information
kiteB authored Aug 16, 2023
2 parents 24cbd74 + 999be21 commit 80d5742
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 80d5742

Please sign in to comment.