Skip to content

Commit

Permalink
🚑 hotfix: userid반환이 아닌 favorite food id로 제대로 반환하도록 수정 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Nov 17, 2023
1 parent 2d4f5ee commit 5dd247e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public List<ResponseFavoriteFoodDto> getFavoriteFoodList(Long userId){
validateUser(userId);
List<FavoriteFood> foodList = favoriteFoodRepository.findAllByUserId(userId);
return foodList.stream()
.map(favoriteFood -> ResponseFavoriteFoodDto.of(favoriteFood.getUser().getId(),favoriteFood.getName(),
.map(favoriteFood -> ResponseFavoriteFoodDto.of(favoriteFood.getId(),favoriteFood.getName(),
favoriteFood.getBaseNutrition(), favoriteFood.getCount())).collect(Collectors.toList());
}

Expand Down

0 comments on commit 5dd247e

Please sign in to comment.