-comment order prod condition
This commit is contained in:
parent
3f78367ce4
commit
034a666729
|
@ -90,16 +90,16 @@ export class TransactionController {
|
|||
@Body() orderTransactionDto: OrderTransactionDto,
|
||||
@Request() req,
|
||||
) {
|
||||
if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
|
||||
return {
|
||||
data: await this.transactionService.orderTransaction(
|
||||
orderTransactionDto,
|
||||
req.user,
|
||||
),
|
||||
statusCode: HttpStatus.CREATED,
|
||||
message: 'success',
|
||||
};
|
||||
} else {
|
||||
// if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
|
||||
// return {
|
||||
// data: await this.transactionService.orderTransaction(
|
||||
// orderTransactionDto,
|
||||
// req.user,
|
||||
// ),
|
||||
// statusCode: HttpStatus.CREATED,
|
||||
// message: 'success',
|
||||
// };
|
||||
// } else {
|
||||
return {
|
||||
data: await this.transactionService.orderTransactionProd(
|
||||
orderTransactionDto,
|
||||
|
@ -108,7 +108,7 @@ export class TransactionController {
|
|||
statusCode: HttpStatus.CREATED,
|
||||
message: 'success',
|
||||
};
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
@Post('order-bill-prod')
|
||||
|
|
Loading…
Reference in New Issue
Block a user