Browse Source

Merge pull request #589 from JDonadio/fix/edit-note

Return note
activeAddress
Ivan Socolsky 8 years ago
committed by GitHub
parent
commit
15c2ba0756
  1. 4
      lib/expressapp.js

4
lib/expressapp.js

@ -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);
}); });
}); });
}); });

Loading…
Cancel
Save