Commit 7ab18825f17eef9567c9173b011151e17e09d8f7

Authored by Adhidarma Hadiwinoto
1 parent 75e0f7eb82
Exists in master

_reportToCore jadi reportToCore

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

... ... @@ -44,7 +44,7 @@ function _requestToPartner(task, pendingOnError) {
44 44  
45 45 logger.warn('Error requesting to partner', {task: task, err: err})
46 46  
47   - _reportToCore({
  47 + reportToCore({
48 48 trx_id: task.trx_id,
49 49 rc: rc,
50 50 message: 'Error requesting to partner: ' + err,
... ... @@ -59,7 +59,7 @@ function _requestToPartner(task, pendingOnError) {
59 59 let rc = '68';
60 60 logger.warn('Partner returning non 200 HTTP STATUS CODE', {task: task, http_status_code: res.statusCode})
61 61  
62   - _reportToCore({
  62 + reportToCore({
63 63 trx_id: task.trx_id,
64 64 rc: rc,
65 65 message: 'Partner returning HTTP STATUS CODE ' + res.statusCode + ' instead of 200',
... ... @@ -90,7 +90,7 @@ function reportToCore(data) {
90 90 if (config.auto_resend && config.auto_resend.max_retry) {
91 91 max_retry = Number(config.auto_resend.max_retry);
92 92 }
93   -
  93 +
94 94 setTimeout(
95 95 function() {
96 96