fixing: transaction create

This commit is contained in:
ilham
2022-01-10 00:13:41 +07:00
parent 2114ba6fa6
commit b67ce2ed79
2 changed files with 11 additions and 10 deletions

View File

@@ -23,6 +23,7 @@ export class ProductHistoryPriceService {
const result = await this.productHistoryPriceRepository
.createQueryBuilder('product_history_price')
.leftJoin('product_history_price.product', 'product')
.leftJoinAndSelect('product_history_price.partner', 'partner')
.where({ product: productId })
.andWhere('product_history_price.endDate IS NULL')
.getMany();