diff --git a/src/payments/services/payments.service.ts b/src/payments/services/payments.service.ts index 4a701a1..205a74d 100644 --- a/src/payments/services/payments.service.ts +++ b/src/payments/services/payments.service.ts @@ -694,9 +694,11 @@ export class PaymentsService { ); } - await this.eventBus.publish( - new CreatedReservationEvent(paymentInfo.reservation.id), - ); + if (paymentInfo.reservation) { + await this.eventBus.publish( + new CreatedReservationEvent(paymentInfo.reservation.id), + ); + } } // 카드 결제 정보 처리