From 2de8aa66f7b6d266df36a206d167687c2565f06e Mon Sep 17 00:00:00 2001 From: daolove0323 Date: Wed, 20 Nov 2024 02:18:38 +0900 Subject: [PATCH] Update PaymentService.java --- .../cokaen/wouldyouin/payment/application/PaymentService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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