From 2c48a4138973cb05b3e08c63c74090109d15fbeb Mon Sep 17 00:00:00 2001 From: LJH Date: Thu, 30 May 2024 11:03:53 +0900 Subject: [PATCH] =?UTF-8?q?Fix(#515):=20=ED=8C=A8=EC=8A=A4=EA=B6=8C=20?= =?UTF-8?q?=EA=B5=AC=EB=A7=A4=EC=8B=9C=20=EC=95=8C=EB=A6=BC=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/payments/services/payments.service.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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), + ); + } } // 카드 결제 정보 처리