Fixed sendError call.
This commit is contained in:
parent
3f558f6ace
commit
d115580ae9
@ -72,7 +72,7 @@ WalletService.prototype._endpointUTXOs = function() {
|
||||
};
|
||||
self._getUtxos(walletId, height, options, function(err, utxos) {
|
||||
if(err) {
|
||||
return utils.sendError(err);
|
||||
return utils.sendError(err, res);
|
||||
}
|
||||
res.status(200).jsonp({
|
||||
utxos: utxos,
|
||||
@ -101,7 +101,7 @@ WalletService.prototype._endpointGetBalance= function() {
|
||||
|
||||
self._getBalance(walletId, height, options, function(err, result) {
|
||||
if(err) {
|
||||
return utils.sendError(err);
|
||||
return utils.sendError(err, res);
|
||||
}
|
||||
res.status(200).jsonp(result);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user