|
|
@@ -31,7 +31,11 @@ export class ProductService {
|
|
|
product.category = updateProductRequest.category;
|
|
|
product.tags = updateProductRequest.tags;
|
|
|
product.photo = updateProductRequest.photo;
|
|
|
- product.totalCalories = updateProductRequest.totalCalories;
|
|
|
+ product.protein = updateProductRequest.protein;
|
|
|
+ product.fat = updateProductRequest.fat;
|
|
|
+ product.fiber = updateProductRequest.fiber;
|
|
|
+ product.ash = updateProductRequest.ash;
|
|
|
+ product.moisture = updateProductRequest.moisture;
|
|
|
product.totalWeight = updateProductRequest.totalWeight;
|
|
|
return this.productRepository.save(product);
|
|
|
}
|