fixing: callback transaction

This commit is contained in:
ilham
2022-05-21 14:35:59 +07:00
parent 6a2c535414
commit 6629e97c35
5 changed files with 29 additions and 6 deletions

View File

@@ -37,4 +37,9 @@ export class ProductHistoryPrice extends BaseModel {
default: 0,
})
admin_price: number;
@Column({
default: 0,
})
partner_fee: number;
}

View File

@@ -110,6 +110,8 @@ export class ProductService {
type: productType.NORMAL,
startDate: new Date(),
partner: it[6] != '-' ? partnerData : null,
admin_price: it[8],
partner_fee: it[9],
});
} else {
let partnerData;
@@ -135,6 +137,8 @@ export class ProductService {
startDate: new Date(),
endDate: null,
partner: partnerData,
admin_price: it[8],
partner_fee: it[9],
});
}
});