Skip to content

Commit

Permalink
Merge pull request #219 from kakao-tech-campus-2nd-step3/HOTFIX/#218-…
Browse files Browse the repository at this point in the history
…menu-imgaes-fix

[fix] 반환값 변경
  • Loading branch information
sanghee0820 authored Nov 15, 2024
2 parents 672aec8 + d8f18ef commit fe7ae88
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public static MenuInfos of(
List<String> menuImgUrls,
List<Menu> menus,
LocalDateTime menuUpdatedAt) {

menuImgUrls = menuImgUrls.stream()
.filter(url -> url != null && url.isBlank())
.toList();
List<MenuInfo> menuList = menus.stream()
.map(menu -> new MenuInfo(menu.getPrice(), menu.isRecommend(),
menu.getMenuName(), menu.getMenuImgUrl().trim(), menu.getDescription()))
Expand Down

0 comments on commit fe7ae88

Please sign in to comment.