From 1d38c91fbc8aed5b909c0ce9f60014b219fe792a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Dec 2017 19:08:52 +0100 Subject: delete and reply --- bucky/app/bucky.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bucky/app/bucky.js') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 5fb58bf..47ad187 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -530,4 +530,7 @@ var bucky = module.exports = { next() }) }, + destroyMessage: function(req, res, next) { + res.message.destroy().then( () => next() ) + }, } \ No newline at end of file -- cgit v1.2.3-70-g09d2