From 7eb19b5ad1b4d93f20928314ec2efd49bdb948b7 Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Wed, 23 Aug 2023 12:49:36 +0700 Subject: [PATCH] - fix response failed added what caused failed transaction --- src/transaction/transaction.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index 3066f17..eb0f36d 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -616,7 +616,7 @@ export class TransactionService { //HIT API SUPPLIER let trxId; - trxId = Array(11) + trxId = Array(15) .fill(null) .map(() => { return Math.round(Math.random() * 16).toString(16); @@ -1570,7 +1570,7 @@ export class TransactionService { if (callback['hrg']) { dataProductHistoryPrice.price = callback['hrg']; - } else { + } else if (callback['data']['additional']['harga']) { dataProductHistoryPrice.price = parseInt(callback['data']['additional']['harga']); } } else if (supplier.code == 'Digiflazz') {