From 1ca568ded4e68421a11175e872f331051749fff0 Mon Sep 17 00:00:00 2001 From: Fadli Date: Tue, 11 Apr 2023 11:05:51 +0700 Subject: [PATCH] - added update sub categories for updating product csv --- 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 532917e..c63420f 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -86,7 +86,7 @@ export class ProductService { //TODO : Handle Update Product productData.name = it[1]; productData.status = it[5] == 'active' ? 'ACTIVE' : 'NOT ACTIVE'; - + productData.sub_categories = it[2]; await this.productRepository.save(productData); //TODO : Handle History Price