Skip to content

Commit

Permalink
[fix] 반환값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghee0820 committed Nov 15, 2024
1 parent c776e2c commit d8f18ef
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 d8f18ef

Please sign in to comment.