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