feat: fixed midtrans
parent
a015353990
commit
aaf6f97e57
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue