From 52d712fd051bf89c75696c722a878c12e22fe5cf Mon Sep 17 00:00:00 2001 From: Fadli Date: Tue, 30 Aug 2022 14:28:27 +0700 Subject: [PATCH] - change status to product history status and only 1 value get from table product history status if value is same --- src/product/product.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/product/product.service.ts b/src/product/product.service.ts index 76f1494..7fb6680 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -387,6 +387,7 @@ export class ProductService { 'current_price.price as price', ]) .addSelect('history_status.status', 'status') + .distinct() // .addSelect( // '(current_price.price + current_price.mark_up_price) as price', // );