Fixed sendError call.

This commit is contained in:
Chris Kleeschulte 2017-01-16 19:32:30 -05:00
parent 3f558f6ace
commit d115580ae9

View File

@ -72,7 +72,7 @@ WalletService.prototype._endpointUTXOs = function() {
}; };
self._getUtxos(walletId, height, options, function(err, utxos) { self._getUtxos(walletId, height, options, function(err, utxos) {
if(err) { if(err) {
return utils.sendError(err); return utils.sendError(err, res);
} }
res.status(200).jsonp({ res.status(200).jsonp({
utxos: utxos, utxos: utxos,
@ -101,7 +101,7 @@ WalletService.prototype._endpointGetBalance= function() {
self._getBalance(walletId, height, options, function(err, result) { self._getBalance(walletId, height, options, function(err, result) {
if(err) { if(err) {
return utils.sendError(err); return utils.sendError(err, res);
} }
res.status(200).jsonp(result); res.status(200).jsonp(result);
}); });