From 3f78367ce4a2ad3dafb34e8f34b4fd371e82d715 Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Thu, 21 Sep 2023 01:02:57 +0700 Subject: [PATCH] -uncomment order prod condition --- src/transaction/transaction.controller.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/transaction/transaction.controller.ts b/src/transaction/transaction.controller.ts index d7357d4..8fd660e 100644 --- a/src/transaction/transaction.controller.ts +++ b/src/transaction/transaction.controller.ts @@ -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')