Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production

This commit is contained in:
Fadli 2023-04-11 11:27:41 +07:00
commit 4098c6717c
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,11 @@ export class Product extends BaseModel {
}) })
type: string; type: string;
@Column({
type: 'uuid'
})
sub_categories_id: string;
@ManyToOne( @ManyToOne(
() => { () => {
return ProductSubCategories; return ProductSubCategories;

View File

@ -86,7 +86,7 @@ export class ProductService {
//TODO : Handle Update Product //TODO : Handle Update Product
productData.name = it[1]; productData.name = it[1];
productData.status = it[5] == 'active' ? 'ACTIVE' : 'NOT ACTIVE'; productData.status = it[5] == 'active' ? 'ACTIVE' : 'NOT ACTIVE';
productData.sub_categories_id = subCategories.id;
await this.productRepository.save(productData); await this.productRepository.save(productData);
//TODO : Handle History Price //TODO : Handle History Price