fix: booking date undefined

fix/bug-firman
shancheas 2024-08-12 18:41:28 +07:00
parent 01b4ee2bbd
commit ceae06779e
1 changed files with 6 additions and 1 deletions

View File

@ -65,12 +65,17 @@ export class MidtransCallbackHandler
.manager.connection.createQueryRunner();
await this.dataService.create(queryRunner, TransactionModel, transaction);
console.log({ data, old_data });
this.eventBus.publish(
new TransactionChangeStatusEvent({
id: data_id,
old: old_data,
data: { ...data, status: transaction.status },
data: {
...data,
status: transaction.status,
booking_date: transaction.booking_date,
},
user: BLANK_USER,
description: 'Midtrans Callback',
module: TABLE_NAME.TRANSACTION,