Merge branch 'development' into 'devops-staging'

fix: transaction service

See merge request empatnusabangsa/ppob/ppob-backend!133
This commit is contained in:
ilham dwi pratama 2022-02-05 18:21:23 +00:00
commit 65be12a4c4

View File

@ -448,7 +448,7 @@ export class TransactionService {
orderTransactionDto.productCode,
);
const product_price = await this.productHistoryPriceService.findOne(
let product_price = await this.productHistoryPriceService.findOne(
product.id,
userData.partner?.id,
);
@ -528,6 +528,8 @@ export class TransactionService {
newProductPrice.product = product;
newProductPrice.partner = x.partner;
await this.productHistoryPriceService.create(newProductPrice);
product_price = newProductPrice;
});
}