mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
add test payment event
This commit is contained in:
@@ -29,6 +29,11 @@ export class PaymentEventsConsumer {
|
||||
},
|
||||
})
|
||||
async handle(event: PaymentEvent): Promise<Nack | void> {
|
||||
// Logged the instant RabbitMQ delivers the message, before any DB work — proves the
|
||||
// payment -> passenger broker connection works even if processing later fails/hangs.
|
||||
this.logger.log(
|
||||
`RECEIVED ${event.eventType} (${event.eventId}) ref=${event.referenceId} via RabbitMQ`,
|
||||
);
|
||||
try {
|
||||
const result = await this.paymentsService.handlePaymentEvent(
|
||||
event as unknown as PaymentEventDto,
|
||||
|
||||
Reference in New Issue
Block a user