summaryrefslogtreecommitdiff
path: root/bucky/app/bucky.js
diff options
context:
space:
mode:
Diffstat (limited to 'bucky/app/bucky.js')
-rw-r--r--bucky/app/bucky.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 2689c4b..8b829da 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -235,7 +235,9 @@ var bucky = module.exports = {
}
res.comment.set('comment', req.body.comment)
res.comment.set('date', util.now())
- res.comment.save().then(next).catch(err => {
+ res.comment.save().then(() => {
+ next()
+ }).catch(err => {
res.sendStatus(500)
})
},
@@ -243,7 +245,7 @@ var bucky = module.exports = {
res.comment.destroy().then(() => {
next()
}).catch(err => {
- res.send(500)
+ res.sendStatus(500)
})
},