Commit b16c1c940210c185af5dfcb8e4c33d6d315c8fb1
1 parent
02eefd4ecc
Exists in
master
exports.checkStatus
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
partner-otomax.js
... | ... | @@ -44,7 +44,8 @@ function start(options) { |
44 | 44 | resendDelay.init({ |
45 | 45 | config: config, |
46 | 46 | topupRequest: topupRequest, |
47 | - logger: logger | |
47 | + logger: logger, | |
48 | + topupRequest: checkStatus | |
48 | 49 | }); |
49 | 50 | |
50 | 51 | taskHistory.init(options); |
... | ... | @@ -78,7 +79,7 @@ function topupRequest(task) { |
78 | 79 | } |
79 | 80 | |
80 | 81 | aaa.insertTaskToMongoDb(task); |
81 | - antiSameDayDupe.check(task, _topupRequest, onSameDayDupe, _topupRequest); | |
82 | + antiSameDayDupe.check(task, _topupRequest, onSameDayDupe, checkStatus); | |
82 | 83 | } |
83 | 84 | |
84 | 85 | function _topupRequest(task) { |
... | ... | @@ -241,5 +242,6 @@ function parseSn(message, pattern) { |
241 | 242 | |
242 | 243 | exports.start = start; |
243 | 244 | exports.topupRequest = topupRequest; |
245 | +exports.checkStatus = checkStatus; | |
244 | 246 | exports.generateSign = generateSign; |
245 | 247 | exports.parseSn = parseSn; |