Skip to content

Commit

Permalink
Test: paymentRecord.of try에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
nampongo committed Apr 16, 2024
1 parent cf8e4a0 commit d9cf616
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public void savePaymentRecord(MyChallenge myChallenge, Long memberId, PaymentSta
String groupTitle = group.getGroupTitle();
updateGroupParticipantCount(group, status);

PaymentRecord paymentRecord = PaymentRecord.of(status, memberId, myChallenge, groupTitle);
try {
PaymentRecord paymentRecord = PaymentRecord.of(status, memberId, myChallenge, groupTitle);
paymentRecordRepository.save(paymentRecord);
} catch (Exception e) {
throw new PaymentRecordExistException("이미 존재하는 예치금 내역입니다.");
Expand Down

0 comments on commit d9cf616

Please sign in to comment.