Merge pull request 'feat: fixed midtrans' (#67) from fix/bug-firman into development
continuous-integration/drone/tag Build was killed
Details
continuous-integration/drone/tag Build was killed
Details
Reviewed-on: #67fix/bug-firman 20.1.32-alpha.1
commit
5e78669b6c
|
@ -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'],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue