diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java index 1763d9f..b6d1fe8 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java @@ -126,8 +126,7 @@ public Long approvePayment(Long orderId, String pgToken) { ); paymentRepository.flush(); ReservationRequest request = new ReservationRequest(payment.getEventId(), payment.getQuantity()); - reservationService.create(payment.getPartnerUserId(), request); - return payment.getPartnerUserId(); + return reservationService.create(payment.getPartnerUserId(), request).getId(); } @Transactional