Commit 70df828c5a86db21d00d54de72b0bedd5efe50d2

Authored by Adhidarma Hadiwinoto
1 parent 9e61d939fc
Exists in master and in 1 other branch dev

TOPUP: undefined on missing amount and ending_balance

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

lib/partner-listener/routers/topup.js
... ... @@ -101,8 +101,8 @@ async function pageIndex(req, res) {
101 101 destination: coreResponse.destination,
102 102 rc: coreResponse.rc,
103 103 sn: coreResponse.sn,
104   - amount: Number(coreResponse.amount) || null,
105   - ending_balance: Number(coreResponse.ending_balance) || null,
  104 + amount: Number(coreResponse.amount) || undefined,
  105 + ending_balance: Number(coreResponse.ending_balance) || undefined,
106 106 message: coreResponse.message,
107 107 };
108 108