Merge branch 'development' into 'devops-staging'

add column url in table supplier

See merge request empatnusabangsa/ppob/ppob-backend!145
This commit is contained in:
Rahman Efendi 2022-04-01 11:18:43 +00:00
commit e10b9d1ecb
2 changed files with 6 additions and 1 deletions

View File

@ -6,4 +6,7 @@ export class CreateSupplierDto {
@IsNotEmpty()
code: string;
@IsNotEmpty()
url: string;
}

View File

@ -43,6 +43,7 @@ export class SupplierService {
supplierData.id = uuid.v4();
supplierData.name = createSupplierDto.name;
supplierData.code = createSupplierDto.code;
supplierData.url = createSupplierDto.url;
supplierData.status = false;
await this.connection.transaction(async (manager) => {
@ -99,6 +100,7 @@ export class SupplierService {
const supplierData = new Supplier();
supplierData.name = updateSupplierDto.name;
supplierData.url = updateSupplierDto.url;
supplierData.status = true;
await this.connection.transaction(async (manager) => {