Commit f1b4b5a796dd931c800720b800dc900168e894ca
1 parent
d1a40ffa0e
Exists in
master
checkStatus
Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff
partner-otomax.js
... | ... | @@ -87,7 +87,13 @@ function _topupRequest(task) { |
87 | 87 | }); |
88 | 88 | } |
89 | 89 | |
90 | -function requestToPartner(task) { | |
90 | +function checkStatus(task) { | |
91 | + taskHistory.put(task, function() { | |
92 | + requestToPartner(task, true); | |
93 | + }); | |
94 | +} | |
95 | + | |
96 | +function requestToPartner(task, pendingOnErrorConnect) { | |
91 | 97 | let requestOptions = createRequestOptions(task); |
92 | 98 | |
93 | 99 | logger.info('Requesting to partner', {task: task, request_options: requestOptions}); |