feat: fixed midtrans #68

Merged
firmanr merged 1 commits from fix/bug-firman into development 2024-08-12 12:14:51 +00:00
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,