Browse Source

Merge pull request #441 from isocolsky/fix/rate-endpoint

Fix error condition in fiat rate endpoint
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
978712c231
  1. 6
      lib/expressapp.js

6
lib/expressapp.js

@ -508,12 +508,8 @@ ExpressApp.prototype.start = function(opts, cb) {
ts: +req.query.ts,
};
server.getFiatRate(opts, function(err, rates) {
if (err) returnError({
code: 500,
message: err,
});
if (err) return returnError(err, res, req);
res.json(rates);
res.end();
});
});
});

Loading…
Cancel
Save