feat: fixed midtrans #68
|
@ -99,7 +99,10 @@ export class ChangeStatusBookingHandler
|
|||
});
|
||||
mappingTransaction(booking);
|
||||
|
||||
console.log({ dataID, couchData, booking });
|
||||
|
||||
if (!couchData) {
|
||||
console.log('save data to couch');
|
||||
await this.couchService.createDoc(
|
||||
{
|
||||
_id: booking.id,
|
||||
|
@ -108,6 +111,7 @@ export class ChangeStatusBookingHandler
|
|||
'booking',
|
||||
);
|
||||
} else {
|
||||
console.log('update data to couch');
|
||||
await this.couchService.updateDoc(
|
||||
{
|
||||
_id: booking.id,
|
||||
|
|
Loading…
Reference in New Issue