Commit e6233ccf566506f97c229c16a62fc92040a7eb59
1 parent
aa8ed03dd8
Exists in
master
perbaikan sn
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
xmlrpc-server.js
... | ... | @@ -268,7 +268,7 @@ function sendReply(response) { |
268 | 268 | } |
269 | 269 | |
270 | 270 | if (response.new_sn) { |
271 | - params.SN = response.new_sn; | |
271 | + params.SN = response.new_sn.replace(/^SN=/, ''); | |
272 | 272 | } |
273 | 273 | |
274 | 274 | if (response.new_ending_balance) { |
... | ... | @@ -346,6 +346,8 @@ function sendTopUpReport(reverseUrls, params, urlIdx, retry) { |
346 | 346 | |
347 | 347 | client.methodCall(methodName, [ params ], function (topUpReportError, value) { |
348 | 348 | |
349 | + return; | |
350 | + | |
349 | 351 | if (topUpReportError) { |
350 | 352 | logger.warn('Error sending topUpReport retrying another url (if available)', {error: topUpReportError}); |
351 | 353 | sendTopUpReport(reverseUrls, params, ++urlIdx, retry); |