feat: fixed midtrans

pull/70/head
Firman Ramdhani 2024-08-12 19:29:21 +07:00
parent b9b1695dc5
commit cc62910493
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ export class MidtransCallbackHandler
.manager.connection.createQueryRunner();
await this.dataService.create(queryRunner, TransactionModel, transaction);
console.log('update change status to tr', {
id: data_id,
old: old_data,
data: { ...data, status: transaction.status },
user: BLANK_USER,
description: 'Midtrans Callback',
module: TABLE_NAME.TRANSACTION,
op: OPERATION.UPDATE,
});
this.eventBus.publish(
new TransactionChangeStatusEvent({