Feat: add insert product history status at update product
This commit is contained in:
@@ -513,6 +513,10 @@ export class ProductService {
|
||||
updateProductDto.subCategoriesId,
|
||||
);
|
||||
|
||||
await this.productHistoryStatus.update(id, {
|
||||
status: updateProductDto.status,
|
||||
});
|
||||
|
||||
const result = await this.productRepository.update(id, {
|
||||
name: updateProductDto.name,
|
||||
code: updateProductDto.code,
|
||||
|
||||
Reference in New Issue
Block a user