Skip to content

Commit

Permalink
Merge pull request #516 from connection-2023/fix/#515
Browse files Browse the repository at this point in the history
Fix(#515): 패스권 구매시 알림 생성X
  • Loading branch information
j-zzi authored May 30, 2024
2 parents 3186ca9 + 2c48a41 commit 3be838f
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 3be838f

Please sign in to comment.