|
@ -586,9 +586,9 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
router.put('/v1/txnotes/:txid/', function(req, res) { |
|
|
router.put('/v1/txnotes/:txid/', function(req, res) { |
|
|
req.body.txid = req.params['txid']; |
|
|
req.body.txid = req.params['txid']; |
|
|
getServerWithAuth(req, res, function(server) { |
|
|
getServerWithAuth(req, res, function(server) { |
|
|
server.editTxNote(req.body, function(err) { |
|
|
server.editTxNote(req.body, function(err, note) { |
|
|
if (err) return returnError(err, res, req); |
|
|
if (err) return returnError(err, res, req); |
|
|
res.end(); |
|
|
res.json(note); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|