feat(SPG-818): fix condition transaction status change handler

pull/58/head
Firman Ramdhani 2024-08-07 18:47:08 +07:00
parent 8dd36042eb
commit b57da1d21a
1 changed files with 26 additions and 26 deletions

View File

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