From 999be21386964ac609cc016a3aa5fee08bd1e71c Mon Sep 17 00:00:00 2001 From: mmy789 Date: Sat, 29 Jul 2023 02:03:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20archiveListView=20=EA=B0=9C=EC=88=98=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/site/archive/web/api/v2/ArchiveControllerV2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive-web/src/main/java/site/archive/web/api/v2/ArchiveControllerV2.java b/archive-web/src/main/java/site/archive/web/api/v2/ArchiveControllerV2.java index c2bffbb..b0c0242 100644 --- a/archive-web/src/main/java/site/archive/web/api/v2/ArchiveControllerV2.java +++ b/archive-web/src/main/java/site/archive/web/api/v2/ArchiveControllerV2.java @@ -28,11 +28,11 @@ public class ArchiveControllerV2 implements ArchiveControllerV2Docs { @GetMapping public ResponseEntity 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")