Commit 050d92ffb6dd14e14390cb1a370d553bc37b7a2a

Authored by Adhidarma Hadiwinoto
1 parent 56ec0ab1f7
Exists in master and in 1 other branch dev

Undefined on missing SN

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

lib/core-callback/sender.js
... ... @@ -22,7 +22,7 @@ const sender = async (data, xid, retry) => {
22 22 product_name: data.product_name,
23 23 destination: data.destination,
24 24 rc: data.rc,
25   - sn: data.sn,
  25 + sn: data.sn || undefined,
26 26 amount: Number(data.amount) || undefined,
27 27 ending_balance: Number(data.ending_balance) || undefined,
28 28 message: data.message,
lib/partner-listener/routers/topup.js
... ... @@ -100,7 +100,7 @@ async function pageIndex(req, res) {
100 100 product_name: coreResponse.product_name,
101 101 destination: coreResponse.destination,
102 102 rc: coreResponse.rc,
103   - sn: coreResponse.sn,
  103 + sn: coreResponse.sn || undefined,
104 104 amount: Number(coreResponse.amount) || undefined,
105 105 ending_balance: Number(coreResponse.ending_balance) || undefined,
106 106 message: coreResponse.message,