Merge pull request 'feat: fixed midtrans' (#70) from fix/bug-firman into development

Reviewed-on: #70
fix/bug-firman
firmanr 2024-08-12 12:30:39 +00:00
commit 211a1e8a3c
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ 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('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,
});
console.log({ data, old_data }); console.log({ data, old_data });
this.eventBus.publish( this.eventBus.publish(