Commit 94007c6eff27867a0ac0390f088837e8e20f25ca

Authored by Adhidarma Hadiwinoto
1 parent d5fe86d04f
Exists in master

masukkan sn hanya jika ada

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

... ... @@ -67,11 +67,14 @@ function report(trx_id, rc, message, sn) {
67 67 trx_id: trx_id,
68 68 rc: rc,
69 69 message: message,
70   - handler: config.handler_name,
71   - sn: sn
  70 + handler: config.handler_name
72 71 }
73 72 }
74 73  
  74 + if (sn) {
  75 + options.qs.sn = sn;
  76 + }
  77 +
75 78 request(options, function(error, response, body) {
76 79 if (error) {
77 80 logger.warn('Error reporting to CORE', {error: error});