fix(routes) use status.txId since status.txHash isn't being set

This commit is contained in:
Josh Harvey 2014-11-15 15:54:54 -05:00
parent 347aec1e6f
commit eb3b72d7ce

View file

@ -89,10 +89,12 @@ function trade(req, res) {
function send(req, res) { function send(req, res) {
plugins.sendBitcoins(getFingerprint(req), req.body, function(err, status) { plugins.sendBitcoins(getFingerprint(req), req.body, function(err, status) {
// TODO: use status.statusCode here after confirming machine compatibility // TODO: use status.statusCode here after confirming machine compatibility
// FIX: (joshm) set txHash to status.txId instead of previous status.txHash which wasn't being set
// Need to clean up txHash vs txId
res.json({ res.json({
errType: err && err.name, errType: err && err.name,
err: err && err.message, err: err && err.message,
txHash: status && status.txHash, txHash: status && status.txId,
txId: status && status.txId txId: status && status.txId
}); });
}); });