Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public Order order(Users users) {
public Order customOrder(Users user, Long price, String itemName, Long matchingId) {

// 매칭 조회
Matching matching = (Matching)matchingService.findById(matchingId)
Object matchingObj = matchingService.findById(matchingId)
.orElseThrow(() -> new IllegalArgumentException("Matching not found with id: " + matchingId));
Matching matching = (Matching) matchingObj;

// 결제내역 생성
Payment payment = Payment.builder()
Expand Down
Loading