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