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.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 2b07f03..49ad8e0 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -176,7 +176,7 @@ var bucky = module.exports = {
var hasComment = req.body.comment && req.body.comment.length
var hasFile = req.files && req.files.length
if (! hasComment && ! hasFile) {
- console.log(">>> NO FILES OR COMMENT")
+ console.log(">>> no files or comment")
return res.sendStatus(400)
}
next()
@@ -249,6 +249,11 @@ var bucky = module.exports = {
})
})
})
+ Promise.all(promises).then(values => {
+ next()
+ }).catch(err => {
+ console.log(err)
+ })
},
/* MAIL */