feat: board 전체조회 결과가 없는 경우 수정

This commit is contained in:
kgc91747 2024-08-12 09:29:25 +09:00
parent 47645e86a8
commit d4bd637abd

View File

@ -37,9 +37,6 @@ public class BoardController {
){ ){
List<ResponseBoardSummaryDto> boardSummaries = boardService.findBoards(pageNo, category, lectureId); List<ResponseBoardSummaryDto> boardSummaries = boardService.findBoards(pageNo, category, lectureId);
if(boardSummaries.isEmpty())
return new ResponseEntity<>(boardSummaries, HttpStatus.NO_CONTENT);
return new ResponseEntity<>(boardSummaries, HttpStatus.OK); return new ResponseEntity<>(boardSummaries, HttpStatus.OK);
} }