Skip to content

Commit

Permalink
fix: cursor range update
Browse files Browse the repository at this point in the history
- 커서가 끝을 가리킬 경우 -2 를 가리키기 때문에 컨트롤러의 커서 값의 최소 값을 -2로 변경
  • Loading branch information
seokwns committed Oct 14, 2023
1 parent 94e031c commit 513ac5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ResponseEntity<?> addPortfolios(@RequestPart PortfolioRequest.addDTO requ
}

@GetMapping(value = "/portfolios")
public ResponseEntity<?> getPortfolios(@RequestParam @Min(-1) Long cursor) {
public ResponseEntity<?> getPortfolios(@RequestParam @Min(-2) Long cursor) {
CursorRequest cursorRequest = new CursorRequest(cursor, PAGE_SIZE);
PageCursor<List<PortfolioResponse.FindAllDTO>> response = portfolioService.getPortfolios(cursorRequest);

Expand Down

0 comments on commit 513ac5e

Please sign in to comment.