fixing: callback transaction

This commit is contained in:
ilham
2022-05-21 18:32:56 +07:00
parent 5f0512e3ce
commit b33fa4c9c6
2 changed files with 5 additions and 5 deletions

View File

@@ -1815,7 +1815,7 @@ export class TransactionService {
status: boolean,
) {
const billData = await this.findOneBillById(trxId);
console.log(billData,"ini dia")
const userData = await this.userService.findExist(billData.user);
const product_price = await this.productHistoryPriceService.findById(
@@ -1855,6 +1855,7 @@ export class TransactionService {
async findOneBillById(trxId: string) {
try {
return await this.checkBillHistoryRepository.findOneOrFail({
relations: ['product_price'],
where: {
trx_id: trxId,
},