return on scan POST

This commit is contained in:
Matias Alejo Garcia 2015-04-04 13:03:19 -03:00
parent 9360144950
commit 7cbdf3c677
2 changed files with 3 additions and 2 deletions

View File

@ -288,8 +288,9 @@ ExpressApp.start = function(opts) {
router.post('/v1/addresses/scan/', function(req, res) {
getServerWithAuth(req, res, function(server) {
server.startScan(req.body, function(err) {
server.startScan(req.body, function(err, started) {
if (err) return returnError(err, res, req);
res.json(started);
res.end();
});
});

View File

@ -1231,7 +1231,7 @@ WalletService.prototype.startScan = function(opts, cb) {
self.scan(opts, scanFinished);
}, 100);
return cb();
return cb(null, {started: true});
});
};