Skip to content

Commit

Permalink
Merge pull request #220 from Make-A-Wish-Sopt/feature/jiyoung-#219-de…
Browse files Browse the repository at this point in the history
…velop

[FIX] 소원 수정 시 힌트 추가
  • Loading branch information
wlwpfh authored Dec 19, 2024
2 parents e89e1b7 + 6535f24 commit 1841a8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/com/sopterm/makeawish/domain/wish/Wish.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public WishStatus getStatus(int expiryDay) {
}
}

public void updateContent(String imageUrl, String title, boolean wantsGift) {
public void updateContent(String imageUrl, String title, boolean wantsGift, String hint) {
if (nonNull(imageUrl)) {
this.presentImageUrl = imageUrl;
}
Expand All @@ -96,6 +96,9 @@ public void updateContent(String imageUrl, String title, boolean wantsGift) {
if(nonNull(wantsGift)) {
this.wantsGift = wantsGift;
}
if(nonNull(hint)) {
this.hint = hint;
}
}

public void updateTerm(LocalDateTime startAt, LocalDateTime endAt) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public UserWishUpdateResponseDTO updateUserMainWish(Long userId, UserWishUpdateR
wish.updateTerm(startDate, endDate);
}
if (status.equals(BEFORE) || status.equals(WHILE)) {
wish.updateContent(request.imageUrl(), request.title(), request.wantsGift());
wish.updateContent(request.imageUrl(), request.title(), request.wantsGift(), request.hint());
wisher.updateProfile(request.transferInfo());

}
Expand Down

0 comments on commit 1841a8a

Please sign in to comment.