Merge branch 'devops-staging' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend
This commit is contained in:
commit
3b36232a0a
|
@ -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;
|
||||||
|
|
|
@ -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 = it[2];
|
productData.sub_categories_id = subCategories.id;
|
||||||
await this.productRepository.save(productData);
|
await this.productRepository.save(productData);
|
||||||
|
|
||||||
//TODO : Handle History Price
|
//TODO : Handle History Price
|
||||||
|
|
Loading…
Reference in New Issue
Block a user