From 04d65978640211e8847be6eb2111c71b8d402fb6 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 13 Apr 2015 10:02:26 -0300 Subject: [PATCH] add json response on delete --- lib/expressapp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/expressapp.js b/lib/expressapp.js index 9f12330..ac8fe9f 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -267,6 +267,9 @@ ExpressApp.start = function(opts) { req.body.txProposalId = req.params['id']; server.removePendingTx(req.body, function(err) { if (err) return returnError(err, res, req); + res.json({ + success: true + }); res.end(); }); });