Merge pull request 'feat: fixed midtrans' (#68) from fix/bug-firman into development
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
Reviewed-on: #68pull/70/head^2 20.1.33-alpha.2
commit
617a08e3f2
|
@ -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