From b16c1c940210c185af5dfcb8e4c33d6d315c8fb1 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Tue, 11 Oct 2016 19:09:19 +0700
Subject: [PATCH] exports.checkStatus

---
 partner-otomax.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/partner-otomax.js b/partner-otomax.js
index 4c09bcd..a90a117 100644
--- a/partner-otomax.js
+++ b/partner-otomax.js
@@ -44,7 +44,8 @@ function start(options) {
     resendDelay.init({
         config: config,
         topupRequest: topupRequest,
-        logger: logger
+        logger: logger,
+        topupRequest: checkStatus
     });
 
     taskHistory.init(options);
@@ -78,7 +79,7 @@ function topupRequest(task) {
     }
 
     aaa.insertTaskToMongoDb(task);
-    antiSameDayDupe.check(task, _topupRequest, onSameDayDupe, _topupRequest);
+    antiSameDayDupe.check(task, _topupRequest, onSameDayDupe, checkStatus);
 }
 
 function _topupRequest(task) {
@@ -241,5 +242,6 @@ function parseSn(message, pattern) {
 
 exports.start = start;
 exports.topupRequest = topupRequest;
+exports.checkStatus = checkStatus;
 exports.generateSign = generateSign;
 exports.parseSn = parseSn;
-- 
1.9.0