From 8988d7c474dbd7baf745d5f12609a83a61e624de Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <adhisimon@gmail.com>
Date: Fri, 11 Jun 2021 15:18:17 +0700
Subject: [PATCH] More logs

---
 index.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 8132b14..bb63cc9 100644
--- a/index.js
+++ b/index.js
@@ -137,6 +137,8 @@ exports.report = async (data, xid, retry) => {
             || null,
     };
 
+    const coreEndpoint = `${coreUrl}/postpaid2/report`;
+
     logger.verbose('POSTPAID2-SDK: Going to report to CORE', {
         xid,
         trxId: data.trx_id,
@@ -144,10 +146,9 @@ exports.report = async (data, xid, retry) => {
         sn: data.sn,
         amount: data.amount,
         baseBillAmount: data.base_bill_amount,
+        coreEndpoint,
     });
 
-    const coreEndpoint = `${coreUrl}/postpaid2/report`;
-
     try {
         const reportResult = await axios.post(
             coreEndpoint, JSON.stringify(dataToReport), REPORT_AXIOS_CONFIG,
-- 
1.9.0