Skip to content

Commit

Permalink
#70 refactor: findAllBoardsByCategory에 수정부분 반영(GetAllBoardRes의 게시판 이미…
Browse files Browse the repository at this point in the history
…지리스트 -> 한개의 이미지Url,ID 로 수정)
  • Loading branch information
xhaktmchl committed Nov 27, 2022
1 parent aa9edda commit b453d5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public ApplicationResponse<List<GetAllBoardRes>> findAllBoardsByCategory(GetAllB
Slice<Board> boards = boardRepository.findAllBoardsByCategory(pageRequest, dto.getCategoryId());
// 보드 res에 이미지uuid -> aws s3 url로 변환
List<GetAllBoardRes> boardsRes = boards.stream()
.map(board -> GetAllBoardRes.toDto(board, awsS3Service.makeUrlsOfFilenames(board.getBoardImagesUUids()), awsS3Service.makeUrlOfFilename(user.getProfileImg())))
.map(board -> GetAllBoardRes.toDto(board, awsS3Service.makeUrlOfFilename(awsS3Service.makeUrlOfFilename(board.getBoardImagesUUids().get(0))), awsS3Service.makeUrlOfFilename(user.getProfileImg())))
.collect(Collectors.toList());
return ApplicationResponse.ok(boardsRes);
}
Expand Down

0 comments on commit b453d5c

Please sign in to comment.