fix(routes) use status.txId since status.txHash isn't being set
This commit is contained in:
parent
347aec1e6f
commit
eb3b72d7ce
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue