return on scan POST
This commit is contained in:
parent
9360144950
commit
7cbdf3c677
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1231,7 +1231,7 @@ WalletService.prototype.startScan = function(opts, cb) {
|
|||
self.scan(opts, scanFinished);
|
||||
}, 100);
|
||||
|
||||
return cb();
|
||||
return cb(null, {started: true});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue