Compare commits

...

2 Commits

Author SHA1 Message Date
firmanr 617a08e3f2 Merge pull request 'feat: fixed midtrans' (#68) from fix/bug-firman into development
continuous-integration/drone/tag Build is passing Details
Reviewed-on: #68
2024-08-12 12:14:51 +00:00
Firman Ramdhani aaf6f97e57 feat: fixed midtrans 2024-08-12 19:14:25 +07:00
1 changed files with 4 additions and 0 deletions

View File

@ -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,