fix: booking date undefined
parent
01b4ee2bbd
commit
ceae06779e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue