From b67ce2ed79ffb56cba1c60cddeef5b6fc6824041 Mon Sep 17 00:00:00 2001 From: ilham Date: Mon, 10 Jan 2022 00:13:41 +0700 Subject: [PATCH] fixing: transaction create --- .../history-price/history-price.service.ts | 1 + src/transaction/transaction.service.ts | 20 +++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/product/history-price/history-price.service.ts b/src/product/history-price/history-price.service.ts index efee989..0d1d06d 100644 --- a/src/product/history-price/history-price.service.ts +++ b/src/product/history-price/history-price.service.ts @@ -23,6 +23,7 @@ export class ProductHistoryPriceService { const result = await this.productHistoryPriceRepository .createQueryBuilder('product_history_price') .leftJoin('product_history_price.product', 'product') + .leftJoinAndSelect('product_history_price.partner', 'partner') .where({ product: productId }) .andWhere('product_history_price.endDate IS NULL') .getMany(); diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index f62269b..a312442 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -489,17 +489,17 @@ export class TransactionService { }) .join(''); - const hitSupplier = await doTransaction( - orderTransactionDto.productCode, - orderTransactionDto.destination, - trxId, - ); + // const hitSupplier = await doTransaction( + // orderTransactionDto.productCode, + // orderTransactionDto.destination, + // trxId, + // ); - // const hitSupplier = { - // harga: product_price.price, - // success: true, - // msg: 'Berhasil', - // }; + const hitSupplier = { + harga: 2000, + success: true, + msg: 'Berhasil', + }; this.logger.log({ responseAPISupplier: hitSupplier,