Skip to content

Commit

Permalink
Fix(#515): 패스권 구매시 알림 생성X
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zzi committed May 30, 2024
1 parent 3186ca9 commit 2c48a41
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/payments/services/payments.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
}

// 카드 결제 정보 처리
Expand Down

0 comments on commit 2c48a41

Please sign in to comment.