From 2e9475e83e71bec85c68adb57105f4a4e7fa71e9 Mon Sep 17 00:00:00 2001 From: Fadli Date: Tue, 30 Aug 2022 17:39:16 +0700 Subject: [PATCH] - fix list order prod in b2c --- src/product/product.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/product/product.service.ts b/src/product/product.service.ts index 7fb6680..5f04229 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -292,7 +292,7 @@ export class ProductService { 'current_price.partner_id is NULL and current_price.end_date is NULL', ) .where( - `product.supplier_id = :supplier_id and status_history.status = 'ACTIVE'`, + `product.supplier_id = :supplier_id and status_history.status = 'ACTIVE' and status_history.partner_id is NULL`, { supplier_id: supplier, },