Skip to content

Commit

Permalink
Merge pull request #94 from EWHA-LUX/fix/#93
Browse files Browse the repository at this point in the history
[Fix] ์นด๋“œ ์‹ค์  ์ž…๋ ฅ ์˜ค๋ฅ˜ ์ˆ˜์ •
  • Loading branch information
jiminnee authored May 22, 2024
2 parents 83d2ae9 + 8ec3203 commit 00a9802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public MyWalletResponseDto.MyWalletProfileDto getMyWalletInfo(Users nowUser) thr
}

public void postCardPerformance(Users nowUser, CardPerformanceRequestDto cardPerformanceRequestDto) throws CustomException {
OwnedCard ownedCard = ownedCardRepository.findOwnedCardByCardIdAndUsers(cardPerformanceRequestDto.getOwnedCardId(), nowUser);
OwnedCard ownedCard = ownedCardRepository.findOwnedCardByIdAndUsers(cardPerformanceRequestDto.getOwnedCardId(), nowUser);
if (ownedCard != null) {
ownedCard.setPerformanceCondition(cardPerformanceRequestDto.getPerformanceCondition());
ownedCardRepository.save(ownedCard);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface OwnedCardRepository extends JpaRepository<OwnedCard, Long> {

OwnedCard findOwnedCardByCardAndUsers(Card card, Users users);

OwnedCard findOwnedCardByCardIdAndUsers(Long cardId, Users users);
OwnedCard findOwnedCardByCardIdAndUsers(Long ownedCardId, Users users);

List<OwnedCard> findOwnedCardByUsers(Users nowUser);

Expand Down

0 comments on commit 00a9802

Please sign in to comment.