Merge pull request 'feat: fixed midtrans' (#67) from fix/bug-firman into development
continuous-integration/drone/tag Build was killed Details

Reviewed-on: #67
fix/bug-firman 20.1.32-alpha.1
firmanr 2024-08-12 11:40:21 +00:00
commit 5e78669b6c
1 changed files with 1 additions and 2 deletions

View File

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