feat(SPG-818): fix condition transaction status change handler
parent
8dd36042eb
commit
b57da1d21a
|
@ -91,7 +91,7 @@ export class ChangeStatusBookingHandler
|
||||||
const isFromCounter = data.payment_type == TransactionPaymentType.COUNTER;
|
const isFromCounter = data.payment_type == TransactionPaymentType.COUNTER;
|
||||||
const dataID = data?.id;
|
const dataID = data?.id;
|
||||||
|
|
||||||
if (!isFromCounter) {
|
// if (!isFromCounter) {
|
||||||
const couchData = await this.couchService.getDoc(dataID, 'booking');
|
const couchData = await this.couchService.getDoc(dataID, 'booking');
|
||||||
|
|
||||||
const booking = await this.bookingService.getOneByOptions({
|
const booking = await this.bookingService.getOneByOptions({
|
||||||
|
@ -120,7 +120,7 @@ export class ChangeStatusBookingHandler
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventsHandler(TransactionUpdatedEvent)
|
@EventsHandler(TransactionUpdatedEvent)
|
||||||
|
|
Loading…
Reference in New Issue