From ddda6020a30ca955f01ea14176484fa62c521203 Mon Sep 17 00:00:00 2001 From: ilham Date: Sun, 27 Feb 2022 09:02:11 +0700 Subject: [PATCH] fix: transaction service --- src/product/history-price/history-price.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/product/history-price/history-price.service.ts b/src/product/history-price/history-price.service.ts index 0d1d06d..1a48c96 100644 --- a/src/product/history-price/history-price.service.ts +++ b/src/product/history-price/history-price.service.ts @@ -115,8 +115,8 @@ export class ProductHistoryPriceService { const query = this.productHistoryPriceRepository .createQueryBuilder('product_history_price') .leftJoin('product_history_price.product', 'product') - .where({ product: productId }) - .andWhere('product_history_price.endDate IS NULL'); + .where({ product: productId }); + // .andWhere('product_history_price.endDate IS NULL'); if (supplierId !== 'null' && supplierId) { query.andWhere('product.supplier = :supplierId', {