From 9baea1263a1cd3961545d2b5c0ac0fc1190a084d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 8 Jan 2018 15:18:18 +0100 Subject: redirect to index after deleting post --- bucky/app/bucky.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bucky/app/bucky.js') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index c85ef45..940e02d 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -249,7 +249,7 @@ var bucky = module.exports = { var promises = [ threadPromise ].concat(commentPromises).concat(filePromises) Promise.all(promises).then( () => { next() - }).catch( () => { + }).catch( (err) => { res.sendStatus(500) }) }, -- cgit v1.2.3-70-g09d2