From 8eaf79bfd1707bcfd4ba751606cb22b17da5ad08 Mon Sep 17 00:00:00 2001 From: lutfi Date: Mon, 12 Aug 2024 16:33:51 +0700 Subject: [PATCH] update --- application/modules/refundkmt/refundkmt.controller.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/modules/refundkmt/refundkmt.controller.js b/application/modules/refundkmt/refundkmt.controller.js index 5870729..2b7768b 100644 --- a/application/modules/refundkmt/refundkmt.controller.js +++ b/application/modules/refundkmt/refundkmt.controller.js @@ -58,8 +58,10 @@ const callbackOy = async (req, res) => { winston.logger.warn( `${uniqueCode} [ RESPONSE REFUND-KMT ]: ${JSON.stringify(result)}` ); + + let recipient_bank_code = recipient_bank.toLowerCase(); // check trx_id yang di request match - let checkRequest = await model.checkRedeem(partner_trx_id, trx_id, amount, recipient_bank, recipient_account); + let checkRequest = await model.checkRedeem(partner_trx_id, trx_id, amount, recipient_bank_code, recipient_account); if (!checkRequest) { result = { @@ -95,7 +97,7 @@ const callbackOy = async (req, res) => { trx_id: trx_id, partner_trx_id: partner_trx_id, amount: amount, - recipient_bank: recipient_bank, + recipient_bank: recipient_bank_code, recipient_account: recipient_account, }, };