Commit e9a9930ccc40fc24451fb04be3a21891c9be4d6e

Authored by Adhidarma Hadiwinoto
1 parent 03cc6fa02b
Exists in master

masih dicari

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

... ... @@ -343,12 +343,11 @@ function sendTopUpReport(reverseUrls, params, urlIdx, retry) {
343 343  
344 344 var methodName = 'topUpReport';
345 345 logger.info('Requesting topUpReport', {params: params});
346   - client.methodCall(methodName, [ params ], function (topupReportError, value) {
  346 + client.methodCall(methodName, [ params ], function (topUpReportError, value) {
347 347  
348 348 try {
349   -
350   - if (topupReportError.constructor === Object && Object.keys(topupReportError).length >= 0) {
351   - logger.warn('Error sending topUpReport retrying another url (if available)', {error: topupReportError, value: value});
  349 + if (Object.keys(topUpReportError).length >= 0) {
  350 + logger.warn('Error sending topUpReport retrying another url (if available)', {error: topUpReportError);
352 351 sendTopUpReport(reverseUrls, params, ++urlIdx, retry);
353 352 return;
354 353 }