Skip to content

Commit

Permalink
fix: 재료 목록 수정 관련 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Soyeon-Cha committed Jun 17, 2024
1 parent 5ee7f77 commit e97fc28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void updateIngredients(Member member, List<UpdateRequestDto> updateReques
for (int j=0; j<updateRequestDtos.size(); j++){
System.out.println("dto의 " + updateRequestDtos.get(j).getIngredientId()+"와 " + "member ingredient 리스트의 " + ingredients.get(i).getIngredientId() + "비교 결과");
// ingredientId가 같은 dto가 존재하면
if (ingredients.get(i).getIngredientId()==updateRequestDtos.get(j).getIngredientId()){
if (Objects.equals(ingredients.get(i).getIngredientId(), updateRequestDtos.get(j).getIngredientId())){

// (existIngs 값) + 1
Integer original = existIngs.get(i);
Expand Down

0 comments on commit e97fc28

Please sign in to comment.