feat: fixed midtrans

pull/68/head
Firman Ramdhani 2024-08-12 19:14:25 +07:00
parent a015353990
commit aaf6f97e57
1 changed files with 4 additions and 0 deletions

View File

@ -99,7 +99,10 @@ export class ChangeStatusBookingHandler
}); });
mappingTransaction(booking); mappingTransaction(booking);
console.log({ dataID, couchData, booking });
if (!couchData) { if (!couchData) {
console.log('save data to couch');
await this.couchService.createDoc( await this.couchService.createDoc(
{ {
_id: booking.id, _id: booking.id,
@ -108,6 +111,7 @@ export class ChangeStatusBookingHandler
'booking', 'booking',
); );
} else { } else {
console.log('update data to couch');
await this.couchService.updateDoc( await this.couchService.updateDoc(
{ {
_id: booking.id, _id: booking.id,