mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 07:38:10 +00:00
feat: ( notifications ) add payment/cancellation events and ticket confirmation
This commit is contained in:
@@ -622,6 +622,12 @@ export class PaymentsService {
|
||||
failureMessage: event.failureMessage,
|
||||
});
|
||||
}
|
||||
const failedBooking = await this.prisma.booking.findUnique({
|
||||
where: { id: event.referenceId },
|
||||
});
|
||||
if (failedBooking) {
|
||||
this.eventEmitter.emit("payment.failed", { booking: failedBooking });
|
||||
}
|
||||
return { processed: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user