diff --git a/src/main/java/com/core/linkup/reservation/reservation/service/MembershipReservationService.java b/src/main/java/com/core/linkup/reservation/reservation/service/MembershipReservationService.java index ee23d7b..ac22b3c 100644 --- a/src/main/java/com/core/linkup/reservation/reservation/service/MembershipReservationService.java +++ b/src/main/java/com/core/linkup/reservation/reservation/service/MembershipReservationService.java @@ -23,13 +23,14 @@ public class MembershipReservationService { public List getAllMyMemberships(Member member) { List individualMembershipResponses = individualMembershipReservationService.getAllIndividualMemberships(member); + List mutableMembershipResponses = new ArrayList<>(individualMembershipResponses); MembershipResponse companyMembershipResponse = companyMembershipReservationService.getCompanyMembership(member); if (companyMembershipResponse!=null) { - individualMembershipResponses.add(companyMembershipResponse); - return individualMembershipResponses; + mutableMembershipResponses.add(companyMembershipResponse); + return mutableMembershipResponses; } else { - return individualMembershipResponses; + return mutableMembershipResponses; } }