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

Reviewed-on: #68
pull/70/head^2 20.1.33-alpha.2
firmanr 2024-08-12 12:14:51 +00:00
commit 617a08e3f2
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,