Skip to content

Commit

Permalink
Update PaymentService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 committed Nov 19, 2024
1 parent 3b95ed9 commit 2de8aa6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2de8aa6

Please sign in to comment.