Skip to content

Commit

Permalink
feat: 밸런스게임 옵션에 이미지 파일이 존재하지 않을 경우 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
gywns0417 committed Dec 6, 2024
1 parent 6e3c6e6 commit 6199574
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public Page<GameMyPageResponse> findAllGamesByMember(ApiMember apiMember, Pageab
private GameMyPageResponse createGameMyPageResponse(Game game, Object source) {
List<Long> resourceIds = getResourceIds(game);
List<File> files = fileRepository.findAllByResourceIdsAndFileType(resourceIds, FileType.GAME_OPTION);
String imgA = game.getImgA(files);
String imgB = game.getImgB(files);
String imgA = files.isEmpty() ? null : game.getImgA(files);
String imgB = files.isEmpty() ? null : game.getImgB(files);

return Stream.of(
new SourceHandler<>(GameBookmark.class, bookmark -> GameMyPageResponse.from(game, bookmark, imgA, imgB)),
Expand Down

0 comments on commit 6199574

Please sign in to comment.