fix: booking date undefined
parent
01b4ee2bbd
commit
ceae06779e
|
@ -65,12 +65,17 @@ export class MidtransCallbackHandler
|
||||||
.manager.connection.createQueryRunner();
|
.manager.connection.createQueryRunner();
|
||||||
|
|
||||||
await this.dataService.create(queryRunner, TransactionModel, transaction);
|
await this.dataService.create(queryRunner, TransactionModel, transaction);
|
||||||
|
console.log({ data, old_data });
|
||||||
|
|
||||||
this.eventBus.publish(
|
this.eventBus.publish(
|
||||||
new TransactionChangeStatusEvent({
|
new TransactionChangeStatusEvent({
|
||||||
id: data_id,
|
id: data_id,
|
||||||
old: old_data,
|
old: old_data,
|
||||||
data: { ...data, status: transaction.status },
|
data: {
|
||||||
|
...data,
|
||||||
|
status: transaction.status,
|
||||||
|
booking_date: transaction.booking_date,
|
||||||
|
},
|
||||||
user: BLANK_USER,
|
user: BLANK_USER,
|
||||||
description: 'Midtrans Callback',
|
description: 'Midtrans Callback',
|
||||||
module: TABLE_NAME.TRANSACTION,
|
module: TABLE_NAME.TRANSACTION,
|
||||||
|
|
Loading…
Reference in New Issue