Commit a5b322f5c8f4533a886b7c7d90a512f07060395b

Authored by Adhidarma Hadiwinoto
1 parent de78ade6c3
Exists in master

unreg_same_day_dupe_if_trx_fail

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

... ... @@ -56,8 +56,8 @@ function start(options) {
56 56 createReverseHttpServer();
57 57 }
58 58  
59   -function _unregSameDayDupeOnFailTrx(requestId, rc) {
60   - if (!Number(config.globals.unreg_same_day_dupe_on_fail_trx)) {
  59 +function _unregSameDayDupeIfTrxFail(requestId, rc) {
  60 + if (!Number(config.globals.unreg_same_day_dupe_if_trx_fail)) {
61 61 return;
62 62 }
63 63  
... ... @@ -72,6 +72,7 @@ function _unregSameDayDupeOnFailTrx(requestId, rc) {
72 72 function callbackReport(requestId, rc, message) {
73 73 if (rc != '68') {
74 74 resendDelay.cancel(requestId);
  75 + _unregSameDayDupeIfTrxFail(requestId, rc);
75 76 } else {
76 77 taskHistory.get(requestId, function(err, archivedTask) {
77 78 if (archivedTask) {