diff --git a/src/main/java/depth/jeonsilog/domain/openApi/application/AddService.java b/src/main/java/depth/jeonsilog/domain/openApi/application/AddService.java index 2fca222..648dfe8 100644 --- a/src/main/java/depth/jeonsilog/domain/openApi/application/AddService.java +++ b/src/main/java/depth/jeonsilog/domain/openApi/application/AddService.java @@ -255,7 +255,7 @@ public ResponseEntity addExhibitionAndPlace() { Integer numOfPages = (totalCount / rows) + 1; log.info("numOfPages: " + numOfPages); - if (page == 10) { // 페이지 조절 + if (page == numOfPages) { // 페이지 조절 ApiResponse apiResponse = ApiResponse.builder() .check(true) .information(exhibitionList)