feat: fixed midtrans #67

Merged
firmanr merged 1 commits from fix/bug-firman into development 2024-08-12 11:40:22 +00:00
1 changed files with 1 additions and 2 deletions

View File

@ -87,14 +87,13 @@ export class ChangeStatusBookingHandler
async handle(event: TransactionChangeStatusEvent) {
const data = event.data.data;
const dataID = data?.id ?? data?.order_id;
const couchData = await this.couchService.getDoc(dataID, 'booking');
const booking = await this.bookingService.getOneByOptions({
where: {
id: data.id,
id: dataID,
},
relations: ['items'],
});