Skip to content

Commit

Permalink
[Fix] 서비스단 정적 팩토리 메서드 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
eunki96 committed Dec 1, 2023
1 parent b768e49 commit db66331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions favor/src/main/java/com/favor/favor/friend/FriendService.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public List<GiftSimpleDto> findGiftListByFriendNo(Long friendNo){
List<Gift> giftList = giftRepository.findGiftsByFriendNoListContains(friendNo);
List<GiftSimpleDto> giftResponseDtoList = new ArrayList<>();
for(Gift gift : giftList){
GiftSimpleDto dto = new GiftSimpleDto(gift);
GiftSimpleDto dto = GiftSimpleDto.from(gift);
giftResponseDtoList.add(dto);
}
return giftResponseDtoList;
Expand All @@ -145,7 +145,7 @@ public List<GiftSimpleDto> findGivenGiftList(Long friendNo){
List<GiftSimpleDto> giftResponseDtoList = new ArrayList<>();
for(Gift gift : giftList){
if(gift.getIsGiven()){
GiftSimpleDto dto = new GiftSimpleDto(gift);
GiftSimpleDto dto = GiftSimpleDto.from(gift);
giftResponseDtoList.add(dto);
}
}
Expand All @@ -156,7 +156,7 @@ public List<GiftSimpleDto> findReceivedGiftList(Long friendNo){
List<GiftSimpleDto> giftResponseDtoList = new ArrayList<>();
for(Gift gift : giftList){
if(!gift.getIsGiven()){
GiftSimpleDto dto = new GiftSimpleDto(gift);
GiftSimpleDto dto = GiftSimpleDto.from(gift);
giftResponseDtoList.add(dto);
}
}
Expand Down

0 comments on commit db66331

Please sign in to comment.