From 9166e5577bf3f0e498aec14757aa01b66ae04bff Mon Sep 17 00:00:00 2001 From: Eungi Jeong Date: Sat, 11 Nov 2023 01:31:24 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EC=9E=84=EC=8B=9C=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- favor/src/main/java/com/favor/favor/gift/GiftService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/favor/src/main/java/com/favor/favor/gift/GiftService.java b/favor/src/main/java/com/favor/favor/gift/GiftService.java index 5e8ee95..6bfc0ca 100644 --- a/favor/src/main/java/com/favor/favor/gift/GiftService.java +++ b/favor/src/main/java/com/favor/favor/gift/GiftService.java @@ -65,7 +65,7 @@ public void updateGift(GiftUpdateRequestDto dto, Gift gift){ gift.setIsGiven(dto.getIsGiven()); gift.setGiftDate(returnLocalDate(dto.getGiftDate())); - List existingFriendNoList = gift.getFriendNoList(); + List existingFriendNoList = new ArrayList<>(gift.getFriendNoList()); List updatedFriendNoList = dto.getFriendNoList(); //친구 목록 수정 시