Skip to content

Commit

Permalink
Merge pull request #109 from CAUSOLDOUTMEN/hotfix/108-favoritefood-list
Browse files Browse the repository at this point in the history
hotfix: userid반환이 아닌 favorite food id로 제대로 반환하도록 수정 (#108)
  • Loading branch information
synoti21 authored Nov 17, 2023
2 parents 2d4f5ee + 5dd247e commit ccd0e49
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 ccd0e49

Please sign in to comment.